Part Number Hot Search : 
LM358 D2412 RB2415 H7808AM 30CTQ080 N60UFD AVAR0046 PSPD25
Product Description
Full Text Search
 

To Download UPD784035YGK Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  1996 data sheet the mark h shows major revised points. mos integrated circuit m pd784035y,784036y,784037y,784038y 16-/8-bit single-chip microcontrollers description the m pd784038y is based on the m pd784038 with an i 2 c bus control function added, and is ideal for audio-visual applications. one-time prom and eprom versions, such as the m pd78p4038y, that can operate in the same voltage range as mask rom versions, and various development tools are provided. the functions are explained in detail in the following users manual. be sure to read this manual when designing your system. m pd784038, 784038y subseries users manual - hardware: u11316e 78k/iv series users manual - instruction: u10905e document no. u10741ej1v0ds00 (1st edition) date published july 1997 n printed in japan features 78k/iv series pin-compatible with m pd78234 subseries, m pd784026 subseries, and m pd784038 subseries higher internal memory capacity than m pd78234 subseries and m pd784026 subseries minimum instruction execution time: 125 ns (@ 32-mhz operation) i/o ports: 64 serial interface: 3 channels uart/ioe (3-wire serial i/o): 2 channels csi (3-wire serial i/o, 2-wire serial i/o, i 2 c bus): 1 channel timer/counter 16-bit timer/counter 3 units 16-bit timer 1 unit pwm output: 2 outputs standby function halt/stop/idle mode clock division function watchdog timer: 1 channel clock output function selectable from f clk , f clk /2, f clk /4, f clk /8, and f clk /16 a/d converter: 8-bit resolution 8 channels d/a converter: 8-bit resolution 2 channels supply voltage: v dd = 2.7 to 5.5 v application fields cellular phones, cordless phones, audio-visual systems, etc. unless contextually excluded, references in this document to the m pd784038y mean m pd784035y, m pd784036y, and m pd784037y. the information in this document is subject to change without notice.
m pd784035y, 784036y, 784037y, 784038y 2 ordering information part number package internal rom (bytes) internal ram (bytes) m pd784035ygc- -3b9 80-pin plastic qfp (14 14 mm, 2.7-mm thick) 48 k 2048 m pd784035ygc- -8bt 80-pin plastic qfp (14 14 mm, 1.4-mm thick) 48 k 2048 m pd784035ygk- -be9 note 80-pin plastic tqfp (fine pitch) (12 12 mm) 48 k 2048 m pd784036ygc- -3b9 80-pin plastic qfp (14 14 mm, 2.7-mm thick) 64 k 2048 m pd784036ygc- -8bt 80-pin plastic qfp (14 14 mm, 1.4-mm thick) 64 k 2048 m pd784036ygk- -be9 note 80-pin plastic tqfp (fine pitch) (12 12 mm) 64 k 2048 m pd784037ygc- -3b9 80-pin plastic qfp (14 14 mm, 2.7-mm thick) 96 k 3584 m pd784037ygc- -8bt 80-pin plastic qfp (14 14 mm, 1.4-mm thick) 96 k 3584 m pd784037ygk- -be9 80-pin plastic tqfp (fine pitch) (12 12 mm) 96 k 3584 m pd784038ygc- -3b9 80-pin plastic qfp (14 14 mm, 2.7-mm thick) 128 k 4352 m pd784038ygc- -8bt 80-pin plastic qfp (14 14 mm, 1.4-mm thick) 128 k 4352 m pd784038ygk- -be9 80-pin plastic tqfp (fine pitch) (12 12 mm) 128 k 4352 note under development remark indicates the rom code suffix.
3 m pd784035y, 784036y, 784037y, 784038y 78k/iv series product development pd784026 pd784908 pd78f4943 pd784915 pd784928 pd784928y pd784046 pd784054 pd784216 pd784216y pd784038 pd784038y pd784225y pd784225 pd784218y pd784218 a/d, 16-bit timer, enhanced power management enhanced internal memory capacity pin-compatible with the pd784026 i 2 c bus supported multi-master i 2 c bus supported 80-pin, rom collection added multi-master i 2 c bus supported enhanced internal memory capacity, rom collection added 100-pin, enhanced i/o and internal memory capacity on-chip 10-bit a/d on-chip iebus tm controller 56-kbyte flash memory for cd-rom software servo control on-chip analog circuit for vcrs enhanced timer multi-master i 2 c bus supported enhanced functions of the pd784915 standard models assp models multi-master i 2 c bus supported : under mass production : under development m m m m m m m m m m m m m m m m m m
m pd784035y, 784036y, 784037y, 784038y 4 functions part number m pd784035y m pd784036y m pd784037y m pd784038y item number of basic instructions 113 (mnemonics) general-purpose register 8 bits 16 registers 8 banks, or 16 bits 8 registers 8 banks (memory mapping) minimum instruction execution 125 ns/250 ns/500 ns/1000 ns (@ 32-mhz operation) time internal memory rom 48 kbytes 64 kbytes 96 kbytes 128 kbytes ram 2048 bytes 3584 bytes 4352 bytes memory space 1 mbyte with program and data spaces combined i/o port total 64 input 8 i/o 56 pins with pull- 54 up resistor leds direct 24 drive output transistor 8 direct drive real-time output port 4 bits 2 or 8 bits 1 timer/counter timer/counter 0: timer register 1 pulse output (16 bits) capture register 1 ? toggle output compare register 2 ? pwm/ppg output ? one-shot pulse output timer/counter 1: timer register 1 pulse output (8/16 bits) capture register 1 ? real-time output (4 bits 2) capture/compare register 1 compare register 1 timer/counter 2: timer register 1 pulse output (8/16 bits) capture register 1 ? toggle output capture/compare register 1 ? pwm/ppg output compare register 1 timer 3: timer register 1 (8/16 bits) compare register 1 pwm output 12-bit resolution 2 channels serial interface uart/ioe (3-wire serial i/o) : 2 channels ( on-chip baud rate generator ) csi (3-wire serial i/o, 2-wire serial i/o, i 2 c bus) : 1 channel a/d converter 8-bit resolution 8 channels d/a converter 8-bit resolution 2 channels clock output selectable from f clk , f clk /2, f clk /4, f clk /8, f clk /16 (can also be used as 1-bit output port) watchdog timer 1 channel standby halt/stop/idle mode interrupt hardware source 24 (internal: 17, external: 7 (variable sampling clock input: 1)) software source brk instruction, brkcs instruction, operand error non-maskable internal: 1, external: 1 maskable internal: 16, external: 6 ? 4 programmable priority levels ? 3 processing styles: vectored interrupt/macro service/context switching supply voltage v dd = 2.7 to 5.5 v package 80-pin plastic qfp (14 14 mm, 2.7-mm thick) 80-pin plastic qfp (14 14 mm, 1.4-mm thick) 80-pin plastic tqfp (fine pitch) (12 12 mm) note the pins with ancillary function are included in the i/o pins. pins with ancillary function note
5 m pd784035y, 784036y, 784037y, 784038y contents 1. differences among models in m pd784038y subseries ............................................. 7 2. major differences from m pd784026 subseries and m pd78234 subseries ........ 8 3. pin configuration (top view) ............................................................................................. 9 4. block diagram ......................................................................................................................... 11 5. pin function ............................................................................................................................... 12 5.1 port pins ............................................................................................................................... ................. 12 5.2 non-port pins ............................................................................................................................... ........ 14 5.3 types of pin i/o circuits and connections for unused pins ........................................................ 16 6. cpu architecture ................................................................................................................... 19 6.1 memory space ............................................................................................................................... ....... 19 6.2 cpu registers ............................................................................................................................... ....... 24 6.2.1 general-purpose registers ................................................................................................. ....... 24 6.2.2 control registers ......................................................................................................... ............... 25 6.2.3 special function registers (sfrs) ......................................................................................... .... 26 7. peripheral hardware functions ...................................................................................... 31 7.1 ports ............................................................................................................................... ........................ 31 7.2 clock generation circuit ..................................................................................................................... 32 7.3 real-time output port ......................................................................................................................... 34 7.4 timer/counter ............................................................................................................................... ........ 35 7.5 pwm output (pwm0, pwm1) .............................................................................................................. 37 7.6 a/d converter ............................................................................................................................... ........ 38 7.7 d/a converter ............................................................................................................................... ........ 39 7.8 serial interface ............................................................................................................................... ...... 40 7.8.1 asynchronous serial interface/3-wire serial i/o (uart/ioe) .................................................. 41 7.8.2 clocked serial interface (csi) ............................................................................................ ........ 43 7.9 clock output function ........................................................................................................................ 44 7.10 edge detection function .................................................................................................................... 45 7.11 watchdog timer ............................................................................................................................... .... 45 8. interrupt function ................................................................................................................ 46 8.1 interrupt sources ............................................................................................................................... .. 46 8.2 vectored interrupt ............................................................................................................................... .48 8.3 context switching ............................................................................................................................... .49 8.4 macro service ............................................................................................................................... ........ 49 8.5 application example of macro service ............................................................................................. 50
m pd784035y, 784036y, 784037y, 784038y 6 9. local bus interface ............................................................................................................. 52 9.1 memory expansion .............................................................................................................................. 5 2 9.2 memory space ............................................................................................................................... ....... 53 9.3 programmable wait ............................................................................................................................. 54 9.4 pseudo static ram refresh function .............................................................................................. 54 9.5 bus hold function ............................................................................................................................... 54 10. standby function ................................................................................................................... 55 11. reset function ......................................................................................................................... 56 12. instruction set ........................................................................................................................ 57 13. electrical specifications ................................................................................................. 62 14. package drawings ................................................................................................................. 83 15. recommended soldering conditions ............................................................................ 86 appendix a development tools .............................................................................................. 88 appendix b related documents ............................................................................................. 90 h h
7 m pd784035y, 784036y, 784037y, 784038y 1. differences among models in m pd784038y subseries the only difference among the m pd784035y, 784036y, 784037y, and 784038y lies in the internal memory capacity. the m pd78p4038y is provided with a 128-kb one-time prom or eprom instead of the mask rom of the above models. these differences are summarized in table 1-1. table 1-1. differences among models in m pd784038y subseries part number m pd784031y m pd784035y m pd784036y m pd784037y m pd784038y m pd78p4038y item internal rom not available 48 kbytes 64 kbytes 96 kbytes 128 kbytes 128 kbytes (mask rom) (mask rom) (mask rom) (mask rom) (one-time prom or eprom) internal ram 2048 bytes 3584 bytes 4352 bytes package 80-pin plastic qfp (14 14 mm, 2.7-mm thick) 80-pin plastic qfp (14 14 mm, 1.4-mm thick) 80-pin plastic tqfp (fine pitch) (12 12 mm) 80-pin ceramic wqfn (14 14 mm)
m pd784035y, 784036y, 784037y, 784038y 8 2. major differences from m pd784026 subseries and m pd78234 subseries series name m pd784038y subseries m pd784026 subseries m pd78234 subseries item m pd784038 subseries number of basic instructions 113 65 (mnemonics) minimum instruction execution time 125 ns 160 ns 333 ns (@ 32-mhz operation) (@ 25-mhz operation) (@ 12-mhz operation) memory space (program/data) 1 mbyte combined 64 kbytes/1 mbyte timer/counter 16-bit timer/counter 1 16-bit timer/counter 1 8-/16-bit timer/counter 2 8-bit timer/counter 2 8-/16-bit timer 1 8-bit timer 1 clock output function provided none watchdog timer provided none serial interface interrupt context provided none switching priority 4 levels 2 levels standby function halt/stop/idle modes halt/stop modes operating clock selectable from f xx /2, f xx /4, f xx /8, and f xx /16 fixed to f xx /2 pin function mode pin none specifies rom-less mode (always high level with m pd78233 and 78237) test pin device test pin none usually, low level package note m pd784038y subseries only uart/ioe (3-wire serial i/o) 2 channels csi (3-wire serial i/o, 2-wire serial i/o, i 2 c bus note ) 1 channel uart/ioe (3-wire serial i/o) 2 channels csi (3-wire serial i/o, sbi) 1 channel uart 1 channel csi (3-wire serial i/o, sbi) 1 channel 80-pin plastic qfp (14 14 mm, 2.7-mm thick) 80-pin plastic qfp (14 14 mm, 1.4-mm thick) 80-pin plastic tqfp (fine pitch) (12 12 mm) 80-pin ceramic wqfn (14 14 mm): m pd78p4038y and 78p4038 only 80-pin plastic qfp (14 14 mm, 2.7-mm thick) 80-pin plastic tqfp (fine pitch) (12 12 mm): m pd784021 only 80-pin ceramic wqfn (14 14 mm): m pd78p4026 only 80-pin plastic qfp (14 14 mm, 2.7-mm thick) 94-pin plastic qfp (20 20 mm) 84-pin plastic qfj (1150 1150 mil) 94-pin ceramic wqfn (20 20 mm): m pd78p238 only
9 m pd784035y, 784036y, 784037y, 784038y 3. pin configuration (top view) ? 80-pin plastic qfp (14 14 mm, 2.7-mm thick) m pd784035ygc- -3b9, 784036ygc- -3b9, 784037ygc- -3b9, 784038ygc- -3b9 ? 80-pin plastic qfp (14 14 mm, 1.4-mm thick) m pd784035ygc- -8bt, 784036ygc- -8bt, 784037ygc- -8bt, 784038ygc- -8bt ? 80-pin plastic tqfp (fine pitch) (12 12 mm) m pd784035ygk- -be9 note 1 , 784036ygk- -be9 note 1 , 784037ygk- -be9, 784038ygk- -be9 notes 1. under development 2. test pin should be connected to v ss0 directly. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 80 61 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 21 40 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 p32/sck0/scl p33/so0/sda p34/to0 p35/to1 p36/to2 p37/to3 reset v dd1 x2 x1 v ss1 p00 p01 p02 p03 p04 p05 p06 p07 p67/refrq/hldak p74/ani4 p73/ani3 p72/ani2 p71/ani1 p70/ani0 v dd0 p17 p16 p15 p14/txd2/so2 p13/txd2/si2 p12/asck2/sck2 p11/pwm1 p10/pwm0 test note 2 v ss0 astb/clkout p40/ad0 p41/ad1 p42/ad2 p31/txd/so1 p30/rxd/si1 p27/si0 p26/intp5 p25/intp4/asck/sck1 p24/intp3 p23/intp2/ci p22/intp1 p21/intp0 p20/nmi av ref3 av ref2 ano1 ano0 av ss av ref1 av dd p77/ani7 p76/ani6 p75/ani5 p66/wait/hldrq p65/wr p64/rd p63/a19 p62/a18 p61/a17 p60/a16 p57/a15 p56/a14 p55/a13 p54/a12 p53/a11 p52/a10 p51/a9 p50/a8 p47/ad7 p46/ad6 p45/ad5 p44/ad4 p43/ad3
m pd784035y, 784036y, 784037y, 784038y 10 a8 to a19 : address bus p60 to p67 : port6 ad0 to ad7 : address/data bus p70 to p77 : port7 ani0 to ani7 : analog input pwm0, pwm1 : pulse width modulation output ano0, ano1 : analog output rd : read strobe asck, asck2 : asynchronous serial clock refrq : refresh request astb : address strobe reset : reset av dd : analog power supply rxd, rxd2 : receive data av ref1 to av ref3 : reference voltage sck0 to sck2 : serial clock av ss : analog ground scl : serial clock ci : clock input sda : serial data clkout : clock output si0 to si2 : serial input hldak : hold acknowledge so0 to so2 : serial output hldrq : hold request test : test intp0 to intp5 : interrupt from peripherals to0 to to3 : timer output nmi : non-maskable interrupt txd, txd2 : transmit data p00 to p07 : port0 v dd0 to v dd1 : power supply p10 to p17 : port1 v ss0 to v ss1 : ground p20 to p27 : port2 wait : wait p30 to p37 : port3 wr : write strobe p40 to p47 : port4 x1, x2 : crystal p50 to p57 : port5
11 m pd784035y, 784036y, 784037y, 784038y 4. block diagram remark the internal rom and ram capacities differ depending on the model. programmable interrupt controller timer/counter0 (16 bits) timer/counter1 (16 bits) timer/counter2 (16 bits) timer3 (16 bits) real-time output port pwm d/a converter a/d converter 78k/iv cpu core rom ram watchdog timer uart/ioe2 baud-rate generator uart/ioe1 baud-rate generator clocked serial interface clock output bus i/f port0 port1 port2 port3 port4 port5 port6 port7 system control nmi intp0 to intp5 intp3 to0 to1 intp0 intp1 intp2/ci to2 to3 p00 to p03 p04 to p07 pwm0 pwm1 ano0 ano1 av ref2 av ref3 ani0 to ani7 av dd av ref1 av ss intp5 rxd/si1 txd/so1 asck/sck1 rxd2/si2 txd2/so2 asck2/sck2 sck0/scl so0/sda si0 astb/clkout ad0 to ad7 a8 to a15 a16 to a19 rd wr wait/hldrq refrq/hldak p00 to p07 p10 to p17 p20 to p27 p30 to p37 p40 to p47 p50 to p57 p60 to p67 p70 to p77 reset test x1 x2 v dd0 , v dd1 v ss0 , v ss1
m pd784035y, 784036y, 784037y, 784038y 12 5. pin function 5.1 port pins pin name i/o alternate function function p00 to p07 i/o C port 0 (p0): ? 8-bit i/o port ? can be used as real-time output port (4 bits 2). ? can be set in input or output mode bitwise. ? pins set in input mode can be connected to internal pull-up resistors by software. ? can drive transistor. p10 i/o pwm0 p11 pwm1 p12 asck2/sck2 p13 rxd2/si2 p14 txd2/so2 p15 to p17 C p20 input nmi p21 intp0 p22 intp1 p23 intp2/ci p24 intp3 p25 intp4/asck/sck1 p26 intp5 p27 si0 p30 i/o rxd/s1 p31 txd/so1 p32 sck0/scl p33 so0/sda p34 to p37 to0 to to3 p40 to p47 i/o ad0 to ad7 port 4 (p4): ? 8-bit i/o port ? can be set in input or output mode bitwise. ? pins set in input mode can be connected to internal pull-up resistors by software. ? can drive leds. p50 to p57 i/o a8 to a15 port 5 (p5): ? 8-bit i/o port ? can be set in input or output mode bitwise. ? pins set in input mode can be connected to internal pull-up resistors by software. ? can drive leds. port 1 (p1): ? 8-bit i/o port ? can be set in input or output mode bitwise. ? pins set in input mode can be connected to internal pull-up resistors by software. ? can drive leds. port 2 (p2): ? 8-bit input port ? p20 cannot be used as general-purpose port pin (non-maskable interrupt). however, its input level can be checked by interrupt routine. ? p22 through p27 can be connected to internal pull-up resistors by software in 6-bit units. ? p25/intp4/asck/sck1 pin can operate as sck1 output pin if so specified by csim1. port 3 (p3): ? 8-bit i/o port ? can be set in input or output mode bitwise. ? pins set in input mode can be connected to internal pull-up resistors by software.
13 m pd784035y, 784036y, 784037y, 784038y pin name i/o alternate function function p60 to p63 i/o a16 to a19 p64 rd p65 wr p66 wait/hldrq p67 refrq/hldak p70 to p77 i/o an10 to an17 port 7 (p7): ? 8-bit i/o port ? can be set in input or output mode bitwise. port6 (p6): ? 8-bit i/o port ? can be set in input or output mode bitwise. ? pins set in input mode can be connected to internal pull-up resistors by software.
m pd784035y, 784036y, 784037y, 784038y 14 5.2 non-port pins pin name i/o alternate function function to0 to to3 output p34 to p37 timer output ci input p23/intp2 count clock input to timer/counter 2 rxd input p30/si1 serial data input (uart0) rxd2 p13/si2 serial data input (uart2) txd output p31/so1 serial data output (uart0) txd2 p14/so2 serial data output (uart2) asck input p25/intp4/sck1 baud rate clock input (uart0) asck2 p12/sck2 baud rate clock input (uart2) sda i/o p33/so0 serial data input/output (2-wire serial i/o, i 2 c bus) si0 input p27 serial data input (3-wire serial i/o0) si1 p30/rxd serial data input (3-wire serial i/o1) si2 p13/rxd2 serial data input (3-wire serial i/o2) so0 output p33/sda serial data output (3-wire serial i/o0) so1 p31/txd serial data output (3-wire serial i/o1) so2 p14/txd2 serial data output (3-wire serial i/o2) sck0 i/o p32/scl serial clock input/output (3-wire serial i/o0) sck1 p25/intp4/asck serial clock input/output (3-wire serial i/o1) sck2 p12/asck2 serial clock input/output (3-wire serial i/o2) scl p32/sck0 serial clock input/output (2-wire serial i/o, i 2 c bus) nmi input p20 external interrupt requests C intp0 p21 ? count clock input to timer/counter 1 ? capture trigger signal of cr11 or cr12 intp1 p22 ? count clock input to timer/counter 2 ? capture trigger signal of cr22 intp2 p23/ci ? count clock input to timer/counter 2 ? capture trigger signal of cr21 intp3 p24 ? count clock input to timer/counter 0 ? capture trigger signal of cr02 intp4 p25/asck/sck1 C intp5 p26 conversion start trigger input to a/d converter ad0 to ad7 i/o p40 to p47 time-division address/data bus (for external memory connection) a8 to a15 output p50 to p57 higher address bus (for external memory connection) a16 to a19 output p60 to p63 higher address when address is extended (for external memory connection) rd output p64 read strobe to external memory wr output p65 write strobe to external memory wait input p66/hldrq wait insertion refrq output p67/hldak refresh pulse output to external pseudo static memory hldrq input p66/wait bus hold request input hldak output p67/refrq bus hold acknowledge output astb output clkout latch timing output of time-division address (a0 through a7) (when accessing external memory) clkout output astb clock output
15 m pd784035y, 784036y, 784037y, 784038y pin name i/o alternate function function reset input C chip reset x1 input C crystal connection for system clock oscillation x2 C (clock can also be input to x1). ani0 to ani7 input p70 to p77 analog voltage input to a/d converter ano0, ano1 output C analog voltage output from d/a converter av ref1 C C reference voltage to a/d converter av ref2 , av ref3 reference voltage to d/a converter av dd a/d converter power supply av ss a/d converter gnd v dd0 note1 positive power supply of the port block v dd1 note1 positive power supply except for the port block v ss0 note2 gnd of the port block v ss1 note2 gnd except for the port block test directly connect to v ss0 (ic test pin). notes 1. the potential of the v dd0 pin must be equal to that of the v dd1 pin. 2. the potential of the v ss0 pin must be equal to that of the v ss1 pin.
m pd784035y, 784036y, 784037y, 784038y 16 5.3 types of pin i/o circuits and connections for unused pins table 5-1 shows types of pin i/o circuits and the connections for unused pins. for the input/output circuit of each type, refer to figure 5-1. table 5-1. types of pin i/o circuits and connections for unused pins pin name i/o circuit type i/o recommended connection for unused pins p00 to p07 5-h i/o input: connect to v dd0 p10/pwm0 output: open p11/pwm1 p12/asck2/sck2 8-c p13/rxd2/si2 5-h p14/txd2/so2 p15 to p17 p20/nmi 2 input connect to v dd0 or v ss0 . p21/intp0 p22/intp1 2-c connect to v dd0 . p23/intp2/ci p24/intp3 p25/intp4/asck/sck1 8-c i/o input: connect to v dd0 output: open p26/intp5 2-c input connect to v dd0 . p27/si0 p30/rxd/si1 5-h i/o input: connect to v dd0 . p31/txd/so1 output: open p32/sck0/scl 10-b p33/so0/sda p34/to0 to p37/to3 5-h p40/ad0 to p47/ad7 p50/a8 to p57/a15 p60/a16 to p63/a19 p64/rd p65/wr p66/wait/hldrq p67/refrq/hldak p70/ani0 to p77/ani7 20-a i/o input: connect to v dd0 or v ss0 . output: open ano0, ano1 12 output open astb/clkout 4-b
17 m pd784035y, 784036y, 784037y, 784038y pin name i/o circuit type i/o recommended connection for unused pins reset 2 input C test 1-a directly connect to v ss0 . av ref1 to av ref3 C connect to v ss0 . av ss av dd connect to v dd0 . caution connect an i/o pin whose input/output mode is unstable to v dd0 via a resistor of several 10 k w (especially if the voltage on the reset input pin rises higher than the low-level input level on power application or when the mode is switched between input and output by software). remark because the circuit type numbers shown in the above table are commonly used with all the models in the 78k series, these numbers of some models are not serial (because some circuits are not provided to some models).
m pd784035y, 784036y, 784037y, 784038y 18 figure 5-1. types of pin i/o circuits type 2 type 1-a type 4-b type 5-h p in v dd0 v ss0 n in data output disable p out v dd0 n type 2-c in p v dd0 pullup enable type 8-c type 10-b data output disable p in/out v dd0 n p v dd0 pullup enable data output disable p in/out v dd0 n p v dd0 pullup enable open drain type 12 p n out type 20-a data output disable p in/out v dd0 n input enable + p n av ref (threshold voltage) schmitt trigger input with hysteresis characteristics push-pull output that can go into a high-impedance state (with both p-ch and n-ch off) schmitt trigger input with hysteresis characteristics analog output voltage comparator data output disable p in/out v dd0 n input enable p v dd0 pullup enable v ss0 v ss0 v ss0 v ss0 av ss v ss0
19 m pd784035y, 784036y, 784037y, 784038y 6. cpu architecture 6.1 memory space a memory space of 1 mbyte can be accessed. mapping of the internal data area (special function registers and internal ram) can be specified the location instruction. the location instruction must be always executed after reset cancellation, and must not be used more than once. (1) when location 0 instruction is executed ? internal memory the internal data area and internal rom area are mapped as follows: part number internal data area internal rom area m pd784035y 0f700h-0ffffh 00000h-0bfffh m pd784036y 00000h-0f6ffh m pd784037y 0f100h-0ffffh 00000h-0f0ffh 10000h-17fffh m pd784038y 0ee00h-0ffffh 00000h-0fdffh 10000h-1ffffh caution the following areas that overlap the internal data area of the internal rom cannot be used when the location 0 instruction is executed. part number unusable area m pd784035y C m pd784036y 0f700h-0ffffh (2304 bytes) m pd784037y 0f100h-0ffffh (3840 bytes) m pd784038y 0ee00h-0ffffh (4608 bytes) ? external memory the external memory is accessed in external memory expansion mode. (2) when location 0fh instruction is executed ? internal memory the internal data area and internal rom area are mapped as follows: part number internal data area internal rom area m pd784035y ff700h-fffffh 00000h-0bfffh m pd784036y 00000h-0ffffh m pd784037y ff100h-fffffh 00000h-17fffh m pd784038y fee00h-fffffh 00000h-1ffffh ? external memory the external memory is accessed in external memory expansion mode.
m pd784035y, 784036y, 784037y, 784038y 20 figure 6-1. memory map of m pd784035y notes 1. accessed in external memory expansion mode. 2. base area and entry area for reset or interrupt. however, the internal ram area is not used as a reset entry area. internal rom (48 kbytes) (256 bytes) special function registers (sfr) external memory note 1 (14080 kbytes) internal ram (2048 bytes) external memory note 1 (960 kbytes) note 1 general-purpose registers (128 bytes) macro service control word area (44 bytes) data area (512 bytes) program/data area (1536 bytes) callf entry area (2 kb) program/data area (48 kbytes) callt table area (64 bytes) vector table area (64 bytes) internal ram (2048 bytes) external memory note 1 (997120 bytes) (256 bytes) internal rom (48 kbytes) on execution of location 0 instruction special function registers (sfr) note 1 on execution of location 0fh instruction h f f f f f h 0 0 0 0 1 h f f f f 0 h f d f f 0 h 0 d f f 0 h 0 0 f f 0 h f f e f 0 h 0 0 7 f 0 h f f 6 f 0 h 0 0 0 c 0 h f f f b 0 h 0 0 0 0 0 h f f e f 0 h 0 8 e f 0 h f 7 e f 0 h 1 3 e f 0 h 0 0 d f 0 h f f c f 0 h 6 0 e f 0 h 0 0 7 f 0 h f f f b 0 h 0 0 0 1 0 h f f f 0 0 h 0 0 8 0 0 h f f 7 0 0 h 0 8 0 0 0 h f 7 0 0 0 h 0 4 0 0 0 h f 3 0 0 0 h 0 0 0 0 0 h f f e f f h 0 8 e f f h f 7 e f f h 1 3 e f f h 6 0 e f f h 0 0 d f f h f f c f f h 0 0 7 f f h 0 0 0 0 0 h f f f b 0 h 0 0 0 c 0 h f f f f 0 h 0 0 0 0 1 h f f 6 f f h 0 0 7 f f h f f f f f h f d f f f h 0 d f f f h 0 0 f f f h f f e f f note 2 note 2
21 m pd784035y, 784036y, 784037y, 784038y figure 6-2. memory map of m pd784036y notes 1. accessed in external memory expansion mode. 2. this 2304-byte area can be used as an internal rom only when the location 0fh instruction is executed. 3. on execution of location 0 instruction: 63232 bytes, on execution of location 0fh instruction: 65536 bytes 4. base area and entry area for reset or interrupt. however, the internal ram area is not used as a reset entry area. internal rom (63232 bytes) (256 bytes) special function registers (sfr) internal ram (2048 bytes) external memory note 1 (960 kbytes) note 1 general-purpose registers (128 bytes) macro service control word area (44 bytes) data area (512 bytes) program/data area (1536 bytes) callf entry area (2 kbytes) program/data area note 3 callt table area (64 bytes) vector table area (64 bytes) internal ram (2048 bytes) external memory note 1 (980736 bytes) (256 bytes) internal rom (64 kbytes) on execution of location 0 instruction special function registers (sfr) note 1 on execution of location 0fh instruction h f f f f f h 0 0 0 0 1 h f f f f 0 h f d f f 0 h 0 d f f 0 h 0 0 f f 0 h f f e f 0 h 0 0 7 f 0 h f f 6 f 0 h 0 0 0 0 0 h f f e f 0 h 0 8 e f 0 h f 7 e f 0 h 1 3 e f 0 h 0 0 d f 0 h f f c f 0 h 6 0 e f 0 h 0 0 7 f 0 h f f 6 f 0 h 0 0 0 1 0 h f f f 0 0 h 0 0 8 0 0 h f f 7 0 0 h 0 8 0 0 0 h f 7 0 0 0 h 0 4 0 0 0 h f 3 0 0 0 h 0 0 0 0 0 h f f e f f h 0 8 e f f h f 7 e f f h 1 3 e f f h 6 0 e f f h 0 0 d f f h f f c f f h 0 0 7 f f h 0 0 0 0 0 h f f f f 0 h 0 0 0 0 1 h f f 6 f f h 0 0 7 f f h f f f f f h f d f f f h 0 d f f f h 0 0 f f f h f f e f f note 4 note 4 note 2 h f f f f 0
m pd784035y, 784036y, 784037y, 784038y 22 figure 6-3. memory map of m pd784037y internal rom (61696 bytes) (256 bytes) special function registers (sfr) internal ram (3584 bytes) external memory note 1 (928 kbytes) note 1 general-purpose registers (128 bytes) macro service control word area (44 bytes) data area (512 bytes) program/data area (3072 bytes) callf entry area (2 kbytes) program/data area note 3 callt table area (64 bytes) vector table area (64 bytes) internal ram (3584 bytes) external memory note 1 (946432 bytes) (256 bytes) internal rom (96 kbytes) on execution of location 0 instruction special function registers (sfr) note 1 on execution of location 0fh instruction h f f f f f h 0 0 0 0 1 h f f f f 0 h f d f f 0 h 0 d f f 0 h 0 0 f f 0 h f f e f 0 h 0 0 1 f 0 h f f 0 f 0 h 0 0 0 0 0 h f f e f 0 h 0 8 e f 0 h f 7 e f 0 h 1 3 e f 0 h 0 0 d f 0 h f f c f 0 h 6 0 e f 0 h 0 0 1 f 0 h f f 0 f 0 h 0 0 0 1 0 h f f f 0 0 h 0 0 8 0 0 h f f 7 0 0 h 0 8 0 0 0 h f 7 0 0 0 h 0 4 0 0 0 h f 3 0 0 0 h 0 0 0 0 0 h f f e f f h 0 8 e f f h f 7 e f f h 1 3 e f f h 6 0 e f f h 0 0 d f f h f f c f f h 0 0 1 f f h 0 0 0 0 0 h f f f 7 1 h 0 0 0 8 1 h f f 0 f f h 0 0 1 f f h f f f f f h f d f f f h 0 d f f f h 0 0 f f f h f f e f f note 4 note 4 note 2 h f f f 7 1 internal rom (32768 bytes) h 0 0 0 8 1 h f f f 7 1 h f f f 7 1 h 0 0 0 0 1 notes 1. accessed in external memory expansion mode. 2. this 3840-byte area can be used as an internal rom only when the location 0fh instruction is executed. 3. on execution of location 0 instruction: 94464 bytes, on execution of location 0fh instruction: 98304 bytes 4. base area and entry area for reset or interrupt. however, the internal ram area is not used as a reset entry area.
23 m pd784035y, 784036y, 784037y, 784038y figure 6-4. memory map of m pd784038y notes 1. accessed in external memory expansion mode. 2. this 4608-byte area can be used as an internal rom only when the location 0fh instruction is executed. 3. on execution of location 0 instruction: 126464 bytes, on execution of location 0fh instruction: 131072 bytes 4. base area and entry area for reset or interrupt. however, the internal ram area is not used as a reset entry area. internal rom (60928 bytes) (256 bytes) special function registers (sfr) internal ram (4352 bytes) external memory note 1 (896 kbytes) note 1 general-purpose registers (128 bytes) macro service control word area (44 bytes) data area (512 bytes) program/data area (3840 bytes) callf entry area (2 kbytes) program/data area note 3 callt table area (64 bytes) vector table area (64 bytes) internal ram (4352 bytes) external memory note 1 (912896 bytes) (256 bytes) internal rom (128 kbytes) on execution of location 0 instruction special function registers (sfr) note 1 on execution of location 0fh instruction h f f f f f h 0 0 0 0 1 h f f f f 0 h f d f f 0 h 0 d f f 0 h 0 0 f f 0 h f f e f 0 h 0 0 e e 0 h f f d e 0 h 0 0 0 0 0 h f f e f 0 h 0 8 e f 0 h f 7 e f 0 h 1 3 e f 0 h 0 0 d f 0 h f f c f 0 h 6 0 e f 0 h 0 0 e e 0 h f f d e 0 h 0 0 0 1 0 h f f f 0 0 h 0 0 8 0 0 h f f 7 0 0 h 0 8 0 0 0 h f 7 0 0 0 h 0 4 0 0 0 h f 3 0 0 0 h 0 0 0 0 0 h f f e f f h 0 8 e f f h f 7 e f f h 1 3 e f f h 6 0 e f f h 0 0 d f f h f f c f f h 0 0 e e f h 0 0 0 0 0 h f f f f 1 h 0 0 0 0 2 h f f d e f h 0 0 e e f h f f f f f h f d f f f h 0 d f f f h 0 0 f f f h f f e f f note 4 note 4 note 2 h f f f f 1 internal rom (65536 bytes) h 0 0 0 0 2 h f f f f 1 h f f f f 1 h 0 0 0 0 1
m pd784035y, 784036y, 784037y, 784038y 24 6.2 cpu registers 6.2.1 general-purpose registers sixteen 8-bit general-purpose registers are available. two 8-bit registers can be also used in pairs as a 16-bit register. of the 16-bit registers, four can be used in combination with an 8-bit register for address expansion as 24- bit address specification registers. eight banks of these registers are available which can be selected by using software or the context switching function. the general-purpose registers except v, u, t, and w registers for address expansion are mapped to the internal ram. figure 6-5. general-purpose register format a (r1) b (r3) r5 r7 r9 r11 d (r13) h (r15) v u t w vvp (rg4) uup (rg5) tde (rg6) whl (rg7) x (r0) c (r2) r4 r6 r8 r10 e (r12) l (r14) ax (rp0) bc (rp1) rp2 rp3 vp (rp4) up (rp5) de (rp6) hl (rp7) parentheses ( ) indicate an absolute name. 8 banks caution registers r4, r5, r6, r7, rp2, and rp3 can be used as x, a, c, b, ax, and bc registers, respectively, by setting the rss bit of the psw to 1. however, use this function only for recycling the program of the 78k/iii series.
25 m pd784035y, 784036y, 784037y, 784038y 6.2.2 control registers (1) program counter (pc) the program counter is a 20-bit register whose contents are automatically updated when the program is executed. figure 6-6. program counter (pc) format (2) program status word (psw) this register holds the statuses of the cpu. its contents are automatically updated when the program is executed. figure 6-7. program status word (psw) format note this flag is provided to maintain compatibility with the 78k/iii series. be sure to clear this flag to 0, except when the software for the 78k/iii series is used. (3) stack pointer (sp) this is a 24-bit pointer that holds the first address of the stack. be sure to write 0 to the higher 4 bits of this pointer. figure 6-8. stack pointer (sp) format 19 0 pc 15 14 13 12 11 10 9 8 uf rbs2 rbs1 rbs0 pswh 76 54 3210 s z rss note ac ie p/v 0 cy pswl psw 23 0 sp 20 0 0 0 0
m pd784035y, 784036y, 784037y, 784038y 26 6.2.3 special function registers (sfrs) the special function registers, such as the mode registers and control registers of the internal peripheral hardware, are registers to which special functions are allocated. these registers are mapped to a 256-byte space of addresses 0ff00h through 0ffffh note . note on execution of the location 0 instruction. fff00h through fffffh on execution of the location 0fh instruction. caution do not access an address in this area to which no sfr is allocated. if such an address is accessed by mistake, the m pd784038y may be in the deadlock status. this deadlock status can be cleared only by inputting the reset signal. table 6-1 lists the special function registers (sfrs). the meanings of the symbols in this table are as follows: ? symbol ............................... symbol indicating an sfr. this symbol is reserved for necs assembler (ra78k4). it can be used as an sfr variable by the #pragma sfr command with the c compiler (cc78k4). ? r/w .................................... indicates whether the sfr is read-only, write-only, or read/write. r/w : read/write r : read-only w : write-only ? bit units for manipulation .. bit units in which the value of the sfr can be manipulated. sfrs that can be manipulated in 16-bit units can be described as the oper- and sfrp of an instruction. to specify the address of this sfr, describe an even address. sfrs that can be manipulated in 1-bit units can be described as the operand of a bit manipulation instruction. ? after reset .......................... indicates the status of the register when the reset signal has been input.
27 m pd784035y, 784036y, 784037y, 784038y table 6-1. special function registers (sfrs) address note special function register (sfr) name symbol r/w bit units for manipulation after reset 1 bit 8 bits 16 bits 0ff00h port 0 p0 r/w C undefined 0ff01h port 1 p1 C 0ff02h port 2 p2 r C 0ff03h port 3 p3 r/w C 0ff04h port 4 p4 C 0ff05h port 5 p5 C 0ff06h port 6 p6 C 00h 0ff07h port 7 p7 C undefined 0ff0eh port 0 buffer register l p0l C 0ff0fh port 0 buffer register h p0h C 0ff10h compare register (timer/counter 0) cr00 C C 0ff12h capture/compare register (timer/counter 0) cr01 C C 0ff14h compare register l (timer/counter 1) cr10 cr10w C 0ff15h compare register h (timer/counter 1) C C C 0ff16h capture/compare register l (timer/counter 1) cr11 cr11w C 0ff17h capture/compare register h (timer/counter 1) C C C 0ff18h compare register l (timer/counter 2) cr20 cr20w C 0ff19h compare register h (timer/counter 2) C C C 0ff1ah capture/compare register l (timer/counter 2) cr21 cr21w C 0ff1bh capture/compare register h (timer/counter 2) C C C 0ff1ch compare register l (timer 3) cr30 cr30w C 0ff1dh compare register h (timer 3) C C C 0ff20h port 0 mode register pm0 C ffh 0ff21h port 1 mode register pm1 C 0ff23h port 3 mode register pm3 C 0ff24h port 4 mode register pm4 C 0ff25h port 5 mode register pm5 C 0ff26h port 6 mode register pm6 C 0ff27h port 7 mode register pm7 C 0ff2eh real-time output port control register rtpc C 00h 0ff30h capture/compare control register 0 crc0 C C 10h 0ff31h timer output control register toc C 00h 0ff32h capture/compare control register 1 crc1 C C 0ff33h capture/compare control register 2 crc2 C C 10h note when the location 0 instruction is executed. when the location 0fh instruction is executed, f0000h is added to this value.
m pd784035y, 784036y, 784037y, 784038y 28 address note 1 special function register (sfr) name symbol r/w bit units for manipulation after reset 1 bit 8 bits 16 bits 0ff36h capture register (timer/counter 0) cr02 r C C 0000h 0ff38h capture register l (timer/counter 1) cr12 cr12w C 0ff39h capture register h (timer/counter 1) C C C 0ff3ah capture register l (timer/counter 2) cr22 cr22w C 0ff3bh capture register h (timer/counter 2) C C C 0ff41h port 1 mode control register pmc1 r/w C 00h 0ff43h port 3 mode control register pmc3 C 0ff4eh pull-up resistor option register puo C 0ff50h timer register 0 tm0 r C C 0000h 0ff51h CC 0ff52h timer register 1 tm1 tm1w C 0ff53h C C C 0ff54h timer register 2 tm2 tm2w C 0ff55h C C C 0ff56h timer register 3 tm3 tm3w C 0ff57h C C C 0ff5ch prescaler mode register 0 prm0 r/w C C 11h 0ff5dh timer control register 0 tmc0 C 00h 0ff5eh prescaler mode register 1 prm1 C C 11h 0ff5fh timer control register 1 tmc1 C 00h 0ff60h d/a conversion value setting register 0 dacs0 C C 0ff61h d/a conversion value setting register 1 dacs1 C C 0ff62h d/a converter mode register dam C 03h 0ff68h a/d converter mode register adm C 00h 0ff6ah a/d conversion result register adcr r C C undefined 0ff70h pwm control register pwmc r/w C 05h 0ff71h pwm prescaler register pwpr C C 00h 0ff72h pwm modulo register 0 pwm0 C C undefined 0ff74h pwm modulo register 1 pwm1 C C 0ff7dh one-shot pulse output control register ospc C 00h 0ff80h i 2 c bus control register iicc C 0ff81h prescaler mode register for serial clock sprm C C 04h 0ff82h clocked serial interface mode register csim C 00h 0ff83h slave address register sva r/w note 2 note 3 C 01h notes 1. when the location 0 instruction is executed. when the location 0fh instruction is executed, f0000h is added to this value. 2. bit 0 is read-only. 3. only bit 0 can be manipulated in bit units.
29 m pd784035y, 784036y, 784037y, 784038y address note 1 special function register (sfr) name symbol r/w bit units for manipulation after reset 1 bit 8 bits 16 bits 0ff84h clocked serial interface mode register 1 csim1 r/w C 00h 0ff85h clocked serial interface mode register 2 csim2 C 0ff86h serial shift register sio C C 0ff88h asynchronous serial interface mode register asim C 0ff89h asynchronous serial interface mode register 2 asim2 C 0ff8ah asynchronous serial interface status register asis r C 0ff8bh asynchronous serial interface status register 2 asis2 C 0ff8ch serial receive buffer: uart0 rxb C C undefined serial transmit shift register: uart0 txs w C C serial shift register: ioe1 sio1 r/w C C 0ff8dh serial receive buffer: uart2 rxb2 r C C serial transmit shift register: uart2 txs2 w C C serial shift register: ioe2 sio2 r/w C C 0ff90h baud rate generator control register brgc C C 00h 0ff91h baud rate generator control register 2 brgc2 C C 0ffa0h external interrupt mode register 0 intm0 C 0ffa1h external interrupt mode register 1 intm1 C 0ffa4h sampling clock select register scs0 C C 0ffa8h in-service priority register ispr r C 0ffaah interrupt mode control register imc r/w C 80h 0ffach interrupt mask register 0l mk0l mk0 ffffh 0ffadh interrupt mask register 0h mk0h 0ffaeh interrupt mask register 1l mk1l C ffh 0ffc0h standby control register stbc C note 2 C 30h 0ffc2h watchdog timer mode register wdm C note 2 C 00h 0ffc4h memory expansion mode register mm C 20h 0ffc5h hold mode register hldm C 00h 0ffc6h clock output mode register clom C 0ffc7h programmable wait control register 1 pwc1 C C aah 0ffc8h programmable wait control register 2 pwc2 C C aaaah notes 1. when the location 0 instruction is executed. when the location 0fh instruction is executed, f0000h is added to this value. 2. data can be written by using only a dedicated instruction such as mov stbc, #byte instruction and mov wdm, #byte instruction, and cannot be written with any other instructions.
m pd784035y, 784036y, 784037y, 784038y 30 address note special function register (sfr) name symbol r/w bit units for manipulation after reset 1 bit 8 bits 16 bits 0ffcch refresh mode register rfm r/w C 00h 0ffcdh refresh area specification register rfa C 0ffcfh oscillation stabilization time specification osts C C register 0ffd0h- external sfr area C CC 0ffdfh 0ffe0h interrupt control register (intp0) pic0 C 43h 0ffe1h interrupt control register (intp1) pic1 C 0ffe2h interrupt control register (intp2) pic2 C 0ffe3h interrupt control register (intp3) pic3 C 0ffe4h interrupt control register (intc00) cic00 C 0ffe5h interrupt control register (intc01) cic01 C 0ffe6h interrupt control register (intc10) cic10 C 0ffe7h interrupt control register (intc11) cic11 C 0ffe8h interrupt control register (intc20) cic20 C 0ffe9h interrupt control register (intc21) cic21 C 0ffeah interrupt control register (intc30) cic30 C 0ffebh interrupt control register (intp4) pic4 C 0ffech interrupt control register (intp5) pic5 C 0ffedh interrupt control register (intad) adic C 0ffeeh interrupt control register (intser) seric C 0ffefh interrupt control register (intsr) sric C interrupt control register (intcsi1) csiic1 C 0fff0h interrupt control register (intst) stic C 0fff1h interrupt control register (intcsi) csiic C 0fff2h interrupt control register (intser2) seric2 C 0fff3h interrupt control register (intsr2) sric2 C interrupt control register (intcsi2) csiic2 C 0fff4h interrupt control register (intst2) stic2 C 0fff5h interrupt control register (intspc) spcic C note when the location 0 instruction is executed. when the location 0fh instruction is executed, f0000h is added to this value.
31 m pd784035y, 784036y, 784037y, 784038y 7. peripheral hardware functions 7.1 ports the ports shown in figure 7-1 are provided to make various control operations possible. table 7-1 shows the function of each port. ports 0 through 6 can be connected to internal pull-up resistors by software when inputting. figure 7-1. port configuration port 0 port 1 port 3 port 4 port 5 port 6 port 7 port 2 p00 p07 p10 p17 p20-p27 p30 p37 p40 p47 p50 p57 p60 p67 p70 p77 8
m pd784035y, 784036y, 784037y, 784038y 32 table 7-1. port functions port name pin name function specification of pull-up resistor connection by software port 0 p00 to p07 ? can be set in input or output mode in all port pins in input mode 1-bit units. ? can operate as 4-bit real-time output port (p00 through p03 and p04 through p07) ? can drive transistor. port 1 p10 to p17 ? can be set in input or output mode in all port pins in input mode 1-bit units. ? can drive leds. port 2 p20 to p27 ? input port in 6-bit units (p22 through p27) port 3 p30 to p37 ? can be set in input or output mode in all port pins in input mode 1-bit units. port 4 p40 to p47 ? can be set in input or output mode in all port pins in input mode 1-bit units. ? can drive leds. port 5 p50 to p57 ? can be set in input or output mode in all port pins in input mode 1-bit units. ? can drive leds. port 6 p60 to p67 ? can be set in input or output mode in all port pins in input mode 1-bit units. port 7 p70 to p77 ? can be set in input or output mode in C 1-bit units. 7.2 clock generation circuit an on-chip clock generation circuit necessary for operation is provided. this clock generation circuit has a divider circuit. if high-speed operation is not necessary, the internal operating frequency can be lowered by the divider circuit to reduce the current consumption. figure 7-2. block diagram of clock generation circuit remark f xx : oscillation frequency or external clock input f clk : internal operating frequency x1 x2 f xx 1/2 1/2 1/2 1/2 uart/ioe intp0 noise reduction circuit oscillation stabilization timer f xx /2 f clk cpu peripheral circuit oscillation circuit selector
33 m pd784035y, 784036y, 784037y, 784038y figure 7-3. example of using oscillation circuit (1) crystal/ceramic oscillation (2) external clock extc bit of osts = 1 extc bit of osts = 0 caution when using the clock oscillation circuit, wire the dotted portion in the above figure as follows to avoid adverse influences of wiring capacitance. keep the wiring length as short as possible. do not cross the wiring with other signal lines. do not route the wiring in the vicinity of lines through which a high alternating current flows. always keep the potential at the ground point of the capacitor in the oscillation circuit the same as v ss1 . do not ground to a ground pattern through which a high current flows. do not extract signals from the oscillation circuit. pd784038y v ss1 x1 x2 m x1 x2 x1 x2 open pd784038y m pd784038y m pd74hc04, etc. m
m pd784035y, 784036y, 784037y, 784038y 34 7.3 real-time output port the real-time output port outputs data stored in a buffer in synchronization with the coincidence interrupt generated by timer/counter 1 or with an external interrupt. as a result, pulses without jitter can be output. the real-time output port is therefore ideal for applications where arbitrary patterns must be output at specific intervals (such as open loop control of a stepping motor). the real-time output port mainly consists of port 0 and port 0 buffer registers (p0h and p0l) as shown in figure 7-4. figure 7-4. block diagram of real-time output port internal bus 844 44 8 real-time output port control register (rtpc) output trigger control circuit intp0 (from external source) intc10 (from timer/counter 1) intc11 (from timer/counter 1) p0h p0l buffer register output latch (p0) p07 p00
35 m pd784035y, 784036y, 784037y, 784038y 7.4 timer/counter three units of timers/counters and one unit of timer are provided. because a total of seven interrupt requests are supported, these timers/counters and timer can be used as seven units of timers/counters. table 7-2. operations of timers/counters name timer/counter 0 timer/counter 1 timer/counter 2 timer 3 item count width 8 bits C 16 bits interval timer 2ch 2ch 2ch 1ch external event counter C one-shot timer C C C function timer output 2ch C 2ch C toggle output C C pwm/ppg output C C one-shot pulse output note CCC real-time output C CC pulse width measurement 1 input 1 input 2 inputs C number of interrupt requests 2221 note the one-shot pulse output function makes a pulse output level active by software and inactive by hardware (interrupt request signal). this function is different in nature from the one-shot timer function of timer/counter 2. operation mode
m pd784035y, 784036y, 784037y, 784038y 36 figure 7-5. block diagram of timers/counters timer/counter 0 remark ovf: overflow flag prescaler edge detection selector clear control timer register 0 (tm0) compare register (cr00) compare register (cr01) capture register (cr02) pulse output control ovf software trigger match to0 to1 intc00 intc01 intp3 intp3 f xx /8 prescaler edge detection selector clear control compare register (cr10/cr10w) capture/compare register (cr11/cr11w) capture register (cr12/cr12w) ovf intc10 intc11 intp0 intp0 f xx /8 event input timer register 1 (tm1/tm1w) prescaler edge detection selector clear control timer register 2 (tm2/tm2w) compare register (cr20/cr20w) capture/compare register (cr21/cr21w) capture register (cr22/cr22w) pulse output control ovf to2 to3 intc20 intc21 intp1 intp1 f xx /8 edge detection intp2 intp2/ci prescaler capture register (cr30/cr30w) match csi f xx /8 timer register 3 (tm3/tm3w) intc30 clear match match match match match to real-time output port timer/counter 1 timer/counter 2 timer 3
37 m pd784035y, 784036y, 784037y, 784038y 7.5 pwm output (pwm0, pwm1) two channels of pwm (pulse width modulation) output circuits with a resolution of 12 bits and a repeat frequency of 62.5 khz (f clk = 16 mhz) are provided. both these pwm output channels can select a high or low level as the active level. these outputs are ideal for controlling the speed of a dc motor. figure 7-6. block diagram of pwm output unit internal bus 16 8 reload control 4 8 8-bit down counter prescaler pulse control circuit 4-bit counter output control 1/256 pwmn (output pin) pwm control register (pwmc) 0 3 4 7 8 15 pwmn pwm modulo register f clk remark n = 0 or 1
m pd784035y, 784036y, 784037y, 784038y 38 7.6 a/d converter an analog-to-digital (a/d) converter with eight multiplexed inputs (ani0 through ani7) is provided. this a/d converter is of successive approximation type. the result of conversion is retained by an 8-bit a/d conversion result register (adcr). therefore, high-speed, high-accuracy conversion can be performed (conversion time: approx. 7.5 m s at f clk = 16 mhz). a/d conversion can be started in either of the following two modes: ? hardware start: conversion is started by trigger input (intp5). ? software start: conversion is started by setting a bit of the a/d converter mode register (adm). after started, the a/d converter operates in the following modes: ? scan mode: two or more analog inputs are sequentially selected, and data to be converted are obtained from all the input pins. ? select mode: only one analog input pin is used to continuously obtain converted values. these operation modes and whether starting or stopping the a/d converter are specified by the adm. when the result of conversion is transferred to the adcr, interrupt request intad is generated. by using this request and macro service, the converted values can be successively transferred to the memory. figure 7-7. block diagram of a/d converter internal bus ani0 ani1 ani2 ani3 ani4 ani5 ani6 ani7 intp5 input selector edge detection circuit conversion trigger sample & hold circuit voltage comparator successive approximation register (sar) control circuit intad 8 series resistor string r/2 tap selector r r/2 av ref1 av ss 8 trigger enable a/d converter mode register (adm) 8 a/d conversion result register (adcr)
39 m pd784035y, 784036y, 784037y, 784038y 7.7 d/a converter two circuits of digital-to-analog (d/a) converters are provided. these d/a converters are of voltage output type and have a resolution of 8 bits. the conversion method is of r-2r resistor ladder type. by writing a value to be output to an 8-bit d/a conversion value setting register (dacsn: n = 0 or 1), an analog value is output to the anon (n = 0 or 1) pin. the output voltage range is determined by the voltage applied across the av ref2 and av ref3 pins. because the output impedance is high, no current can be extracted from the output. if the impedance of the load is low, insert a buffer amplifier between the load and output pin. the anon pin goes into a high-impedance state while the reset signal is low. when the reset signal is deasserted, dacsn is cleared to 0. figure 7-8. block diagram of d/a converter remark n = 0 or 1 av ref2 av ref3 anon 2r 2r r 2r r r 2r dacsn dacen internal bus selector
m pd784035y, 784036y, 784037y, 784038y 40 7.8 serial interface three independent serial interface channels are provided. ? asynchronous serial interface (uart)/3-wire serial i/o (ioe) 2 ? clocked serial interface (csi) 1 ? 3-wire serial i/o (ioe) ? 2-wire serial i/o (ioe) ?i 2 c bus interface (i 2 c) therefore, communication with an external system and local communication within the system can be simulta- neously executed (refer to figure 7-9). figure 7-9. example of serial interface (a) uart + i 2 c (b) uart + 3-wire serial i/o + 2-wire serial i/o note handshake line pd784038y (master) pd4711a rs-232-c driver/receiver rs-232-c driver/receiver [uart] [uart] rxd txd rxd2 txd2 sda scl [i 2 c] lcd pd6272 (eeprom tm ) v dd sda scl sda scl v dd m pd4711a m m port port m pd78062y (slave) m rs-232-c driver/receiver [uart] port rxd txd si so sck port int [3-wire serial i/o] so1 si1 sck1 intpm port sb0 sck0 port int note sda scl intpn port v dd v dd [2-wire serial i/o] pd784038y (master) m pd4711a m pd75108 (slave) m pd78014 (slave) m note
41 m pd784035y, 784036y, 784037y, 784038y 7.8.1 asynchronous serial interface/3-wire serial i/o (uart/ioe) two channels of serial interfaces that can select an asynchronous serial interface mode and 3-wire serial i/o mode are provided. (1) asynchronous serial interface mode in this mode, data of 1 byte following the start bit is transferred or received. because an on-chip baud rate generator is provided, a wide range of baud rates can be set. moreover, the clock input to the asck pin can be divided to define a baud rate. when the baud rate generator is used, a baud rate conforming to the midi standard (31.25 kbps) can be also obtained. figure 7-10. block diagram in asynchronous serial interface mode 1/2m 1/2m 1/2 n+1 receive buffer rxb, rxb2 receive shift register transmit shift register receive control parity check trnsmit control parity append r x d, r x d2 t x d, t x d2 intsr, intsr2 intser, intser2 txs, txs2 intst, intst2 baud rate generator f xx /2 asck, asck2 selector internal bus remark f xx : oscillation frequency or external clock input n = 0 through 11 m = 16 through 30
m pd784035y, 784036y, 784037y, 784038y 42 (2) 3-wire serial i/o mode in this mode, the master device starts transfer by making the serial clock active and transfers 1-byte data in synchronization with this clock. this mode is used to communicate with a device having the conventional clocked serial interface. basically, communication is established by using three lines: one serial clock (sck) and two serial data (si and so) lines. generally, a handshake line is necessary to check the communication state. figure 7-11. block diagram in 3-wire serial i/o mode remark f xx : oscillation frequency or external clock input n = 0 through 11 m = 1 or 16 through 30 internal bus direction control circuit sio1, sio2 shift register output latch serial clock counter serial clock control circuit interrupt signal generation circuit 1/m 1/2 n+1 intcsi1, intcsi2 si1, si2 so1, so2 sck1, sck2 f xx /2 selector
43 m pd784035y, 784036y, 784037y, 784038y 7.8.2 clocked serial interface (csi) in this mode, the master device starts transfer by making the serial clock active and communicates 1-byte data in synchronization with this clock. figure 7-12. block diagram of clocked serial interface internal bus direction control register slave address register selector selector selector acknowledge detection control wake-up control circuit prescaler shift register output latch match signal set reset si0 so0/sda n-ch open drain output (in 2-wire or i 2 c bus mode) stop condition detection circuit serial clock counter sck0/scl serial clock control circuit n-ch open drain output (in 2-wire or i 2 c bus mode) cls0 cls1 timer 3 output f xx /16 f xx /2 interrupt signal generation circuit intcsi intspc start condition detection circuit acknowledge detection circuit remark f xx : oscillation frequency or external clock input
m pd784035y, 784036y, 784037y, 784038y 44 (1) 3-wire serial i/o mode this mode is to communicate with devices having the conventional clocked serial interface. basically, communication is established in this mode with three lines: one serial clock (sck0) and two serial data (si0 and so0) lines. generally, a handshake line is necessary to check the communication status. (2) 2-wire serial i/o mode this mode is to transfer 8-bit data by using two lines: serial clock (scl) and serial data bus (sda). generally, a handshake line is necessary to check the communication status. (3) i 2 c (inter ic) bus mode this mode is to communicate with devices conforming to the i 2 c bus format. this mode is to transfer 8-bit data with two or more devices by using two lines: serial clock (scl) and serial data bus (sda). during transfer, a start condition, data, and stop condition can be output onto the serial data bus. during reception, these data can be automatically detected by hardware. 7.9 clock output function the operating clock of the cpu can be divided and output to an external device. the pin that outputs the clock can also be used as a 1-bit port. when this function is used, the local bus interface cannot be used because the astb and clkout pins are multiplexed. figure 7-13. block diagram of clock output function clkout output control output level selector f clk f clk /2 f clk /4 f clk /8 f clk /16 output enable
45 m pd784035y, 784036y, 784037y, 784038y 7.10 edge detection function the interrupt input pins (nmi and intp0 through intp5) are used not only to input interrupt requests but also to input trigger signals to the internal hardware units. because these pins operate at an edge of the input signal, they have a function to detect an edge. moreover, a noise reduction circuit is also provided to prevent erroneous detection due to noise. pin name detectable edge noise reduction nmi either of rising or falling edge by analog delay intp0-intp3 either or both of rising and falling edges by clock sampling note intp4, intp5 by analog delay note intp0 can select a sampling clock. 7.11 watchdog timer a watchdog timer is provided to detect a hang up of the cpu. this watchdog timer generates a non-maskable interrupt unless it is cleared by software within a specified interval time. once enabled to operate, the watchdog timer cannot be stopped by software. whether the interrupt by the watchdog timer or the interrupt input from the nmi pin takes precedence can be specified. figure 7-14. block diagram of watchdog timer selector f clk /2 21 f clk /2 20 f clk /2 19 f clk /2 17 f clk clear signal timer intwdt
m pd784035y, 784036y, 784037y, 784038y 46 8. interrupt function as the servicing in response to an interrupt request, the three types shown in table 8-1 can be selected by program. table 8-1. servicing of interrupt request servicing mode entity of servicing servicing contents of pc and psw vectored interrupt software branches and executes servicing routine saves to and restores (servicing is arbitrary). from stack. context switching automatically switches register bank, saves to or restores from branches and executes servicing routine fixed area in register bank (servicing is arbitrary). macro service firmware executes data transfer between memory retained and i/o (servicing is fixed) 8.1 interrupt sources table 8-2 shows the interrupt sources available. as shown, interrupts are generated by 24 types of sources, execution of the brk instruction or brkcs instruction, or an operand error. the priority of interrupt servicing can be set to four levels, so that nesting can be controlled during interrupt servicing and that which of the two or more interrupts that simultaneously occur should be serviced first. when the macro service function is used, however, nesting always proceeds. the default priority is the priority (fixed) of the service that is performed if two or more interrupt requests, having the same request, simultaneously generate (refer to table 8-2).
47 m pd784035y, 784036y, 784037y, 784038y table 8-2. interrupt sources type default source internal/ macro service priority name trigger external software C brk instruction instruction execution C C brkcs instruction operand error if result of exclusive or between byte of operand and byte is not ffh when mov stbc, #byte, mov wdm, #byte, or location instruction is executed non-maskable C nmi detection of pin input edge external C wdt overflow of watchdog timer internal maskable 0 (highest) intp0 detection of pin input edge external (tm1/tm1w capture trigger, tm1/tm1w event counter input) 1 intp1 detection of pin input edge (tm2/tm2w capture trigger, tm2/tm2w event counter input) 2 intp2 detection of pin input edge (tm2/tm2w capture trigger , tm2/tm2w event counter input) 3 intp3 detection of pin input edge (tm0 capture trigger, tm0 event counter input) 4 intc00 generation of tm0-cr00 match signal internal 5 intc01 generation of tm0-cr01 match signal 6 intc10 generation of tm1-cr10 match signal (in 8-bit operation mode) generation of tm1w-cr10w match signal (in 16-bit operation mode) 7 intc11 generation of tm1-cr11 match signal (in 8-bit operation mode) generation of tm1w-cr11w match signal (in 16-bit operation mode) 8 intc20 generation of tm2-cr20 match signal (in 8-bit operation mode) generation of tm2w-cr20w match signal (in 16-bit operation mode) 9 intc21 generation of tm2-cr21 match signal (in 8-bit operation mode) generation of tm2w-cr21w match signal (in 16-bit operation mode) 10 intc30 generation of tm3-cr30 match signal (in 8-bit operation mode) generation of tm3w-cr30w match signal (in 16-bit operation mode) 11 intp4 detection of pin input edge external 12 intp5 detection of pin input edge 13 intad end of a/d conversion (transfer of adcr) internal 14 intser occurrence of asi0 reception error C 15 intsr end of asi0 reception or csi1 transfer intcsi1 16 intst end of asi0 transfer 17 intcsi end of csi1 transfer 18 intser2 occurrence of asi2 reception error C 19 intsr2 end of asi2 reception or csi2 transfer intcsi2 20 intst2 end of asi2 transfer 21 (lowest) intspc i 2 c bus stop condition interrupt remark asi: asynchronous serial interface csi: clocked serial interface
m pd784035y, 784036y, 784037y, 784038y 48 8.2 vectored interrupt execution branches to a servicing routing by using the memory contents of a vector table address corresponding to the interrupt source as the address of the branch destination. so that the cpu performs interrupt servicing, the following operations are performed: ? on branching: saves the status of the cpu (contents of pc and psw) to stack ? on returning: restores the status of the cpu (contents of pc and psw) from stack to return to the main routine from an interrupt service routine, the reti instruction is used. the branch destination address is in a range of 0 to ffffh. table 8-3. vector table address interrupt source vector table address brk instruction 003eh operand error 003ch nmi 0002h wdt 0004h intp0 0006h intp1 0008h intp2 000ah intp3 000ch intc00 000eh intc01 0010h intc10 0012h intc11 0014h intc20 0016h intc21 0018h intc30 001ah intp4 001ch intp5 001eh intad 0020h intser 0022h intsr 0024h intcsi1 intst 0026h intcsi 0028h intser2 002ah intsr2 002ch intcsi2 intst2 002eh intspc 0030h
49 m pd784035y, 784036y, 784037y, 784038y 8.3 context switching when an interrupt request is generated or when the brkcs instruction is executed, a predetermined register bank is selected by hardware. context switching is a function that branches execution to a vector address stored in advance in the register bank, and to stack the current contents of the program counter (pc) and program status word (psw) to the register bank. the branch address is in a range of 0 to ffffh. figure 8-1. context switching operation when interrupt request is generated 8.4 macro service this function is to transfer data between memory and a special function register (sfr) without intervention by the cpu. a macro service controller accesses the memory and sfr in the same transfer cycle and directly transfers data without loading it. because this function does not save or restore the status of the cpu, or load data, data can be transferred at high speeds. figure 8-2. macro service register bank n (n = 0 to 7) 0000b <7> transfer pc19-16 pc15-0 <6> exchange <5> save <2> save temporary register <1> save psw v u t w a b r5 r7 d h x c r4 r6 e l vp up <3> switching of register bank (rbs0 to rbs2 ? n) register bank n (0 to 7) (bits 8 through 11 of temporary register) <4> rss ? n ie ? n cpu memory sfr macro service controller read write write read internal bus
m pd784035y, 784036y, 784037y, 784038y 50 8.5 application example of macro service (1) transfer of serial interface each time macro service request (intst) is generated, the next transfer data is transferred from memory to txs. when data n (last byte) has been transferred to txs (when the transfer data storage buffer has become empty), vectored interrupt request (intst) is generated. (2) reception of serial interface each time macro service request (intsr) is generated, the receive data is transferred from rxb to memory. when data n (last byte) has been transferred to memory (when the receive data storage buffer has become full), vectored interrupt request (intsr) is generated. transfer data storage buffer (memory) data n data n? data 1 data 2 internal bus transfer shift register txs(sfr) transfer control intst txd receive data storage buffer (memory) data n data n? data 1 data 2 internal bus receive shift register rxb(sfr) reception control intsr rxd receive buffer
51 m pd784035y, 784036y, 784037y, 784038y (3) real-time output port intc10 and intc11 serve as the output triggers of the real-time output port. the macro services for these can set the following output pattern and intervals simultaneously. therefore, intc10 and intc11 can control two stepping motors independently of each other. they can also be used for pwm output or to control dc motors. output timing profile (memory) t n t n? t 1 t 2 internal bus cr10 (sfr) tm1 intc10 output pattern profile (memory) p n p n? p 1 p 2 internal bus p0l output latch (sfr) match p00-p03 each time macro service request (intc10) is generated, the pattern and timing are transferred to the buffer register (p0l) and compare register (cr10), respectively. when the contents of the timer register 1 (tm1) coincide with those of cr10, intc10 is generated again, and the contents of p0l are transferred to the output latch. when tn (last byte) has transferred to cr10, vectored interrupt request (intc10) is generated. the same applies to intc11.
m pd784035y, 784036y, 784037y, 784038y 52 9. local bus interface the local bus interface can connect an external memory or i/o (memory mapped i/o) and support a memory space of 1 mbyte (refer to figure 9-1). figure 9-1. example of local bus interface 9.1 memory expansion the memory capacity can be expanded in seven steps, from 256 bytes to 1 mbyte, by connecting an external program memory and data memory. decoder latch pseudo sram prom pd27c1001a character generator pd24c1000 data bus address bus gate array i/o expansion centronics i/f, etc. pd784038y a16-a19 rd wr refrq ad0-ad7 astb a8-a15 m m m
53 m pd784035y, 784036y, 784037y, 784038y 9.2 memory space the 1-mbyte memory space is divided into eight spaces of logical addresses. each space can be controlled by using the programmable wait function and pseudo static ram refresh function. figure 9-2. memory space 512 kbytes 256 kbytes 128 kbytes 64 kbytes 16 kbytes 16 kbytes 16 kbytes 16 kbytes h f f f f f h 0 0 0 0 8 h f f f f 7 h 0 0 0 0 4 h f f f f 3 h 0 0 0 0 2 h f f f f 1 h 0 0 0 0 0 h f f f 3 0 h 0 0 0 4 0 h f f f 7 0 h 0 0 0 8 0 h f f f b 0 h 0 0 0 c 0 h f f f f 0 h 0 0 0 0 1
m pd784035y, 784036y, 784037y, 784038y 54 9.3 programmable wait the memory space can be divided into eight spaces and wait states can be independently inserted in each of these spaces while the rd and wr signals are active. even when a memory with a different access time is connected, therefore, the efficiency of the entire system does not drop. in addition, an address wait function that extends the active period of the astb signal is also provided so as to have a sufficient address decode time (this function can be set to the entire space). 9.4 pseudo static ram refresh function the following refresh operations can be performed: ? pulse refresh: a bus cycle that outputs a refresh pulse to the refrq pin at a fixed cycle is inserted. the memory spaces is divided into eight spaces, and a refresh pulse can be output from the refrq pin while a specified memory space is accessed. therefore, the normal memory access is not kept to wait by the refresh cycle. ? power-down self-refresh: the low level is output to the refrq pin in the standby mode to retain the contents of the pseudo static ram. 9.5 bus hold function a bus hold function is provided to facilitate connection of a dma controller. when a bus hold request signal (hldrq) is received from an external bus master, the address bus, address/data bus, and astb, rd, and wr pins go into a high-impedance state when the current bus cycle has been completed. this makes the bus hold acknowledge (hldak) signal active, and releases the bus to the external bus master. note that, while the bus hold function is used, the external wait function and pseudo static ram refresh function cannot be used.
55 m pd784035y, 784036y, 784037y, 784038y 10. standby function this function is to reduce the power dissipation of the chip, and can be used in the following modes: ? halt mode: stops supply of the operating clock to the cpu. this mode is used in combination with the normal operation mode for intermittent operation to reduce the average power dissipation. ? idle mode: stops the entire system with the oscillation circuit continuing operation. the power dissipation in this mode is close to that in the stop mode. however, the time required to restore the normal program operation from this mode is almost the same as that from the halt mode. ? stop mode: stops the oscillator and thereby to stop all the internal operations of the chip. consequently, the power dissipation is minimized with only leakage current flowing. these modes are programmable. the macro service can be started from the halt mode. figure 10-1. transition of standby status waits for oscillation stabilization program operation macro service halt (standby) idle (standby) stop (standby) oscillation stabilization time expires macro service request end of one processing end of macro service macro service request end of one processing interrupt request note 2 reset input sets halt mode interrupt request of masked interrupt sets idle mode reset input nmi, intp4, intp5 input note 1 sets stop mode reset input nmi, intp4, intp5 input note 1 notes 1. when intp4 and intp5 are not masked 2. only interrupt requests that are not masked remark only the externally input nmi is valid. the watchdog timer cannot be used to release the standby mode (stop/idle mode).
m pd784035y, 784036y, 784037y, 784038y 56 11. reset function when the low level is input to the reset pin, the internal hardware is initialized (reset status). when the reset pin goes high, the following data are set to the program counter (pc). ? lower 8 bits of pc: contents of address 0000h ? middle 8 bits of pc: contents of address 0001h ? higher 4 bits of pc: 0 program execution is started from a branch destination address which is the contents of the pc. therefore, the system can be reset and started from any address. set the contents of each register by program as necessary. the reset input circuit has a noise reduction circuit to prevent malfunctioning due to noise. this noise reduction circuit is a sampling circuit by analog delay. figure 11-1. accepting reset signal assert the reset signal active until the oscillation stabilization time (approx. 40 ms) elapses to execute a power- on reset operation. figure 11-2. power-on reset operation delay reset (input) delay internal reset signal reset starts reset ends delay initialize pc executes instruction at reset start address reset (input) internal reset signal reset ends oscillation stabilization time delay initialize pc executes instruction at reset start address v dd
57 m pd784035y, 784036y, 784037y, 784038y 12. instruction set (1) 8-bit instructions (the instructions in parentheses are combinations realized by describing a as r) mov, xch, add, addc, su b, subc, and, or, xor, cmp, mulu, divuw, inc, dec, ror, rol, rorc, rolc, shr, shl, ror4, dbnz, push, pop, movm, xchm, cmpme, cmpmne, cmpmnc, cmpmc, movbk, xchbk, cmpbke, cmpbkne, cmpbknc, cmpbkc, chikl, chkla table 12-1. instruction list by 8-bit addressing second operand #byte a r saddr sfr !addr16 mem r3 [whl+] n none note 2 r' saddr' !!addr24 [saddrp] pswl [whlC] first operand [%saddrg] pswh a (mov) (mov) mov (mov) note 6 mov (mov) mov mov (mov) add note 1 (xch) xch (xch) note 6 (xch) (xch) xch (xch) (add) note 1 (add) note 1 (add) note 1,6 (add) note 1 add note 1 add note 1 (add) note 1 r mov (mov) mov mov mov mov ror note 3 mulu add note 1 (xch) xch xch xch xch divuw (add) note 1 add note 1 add note 1 add note 1 inc dec saddr mov (mov) note 6 mov mov inc add note 1 (add) note 1 add note 1 xch dec add note 1 dbnz sfr mov mov mov push add note 1 (add) note 1 add note 1 pop chkl chkla !addr16 mov (mov) mov !!addr24 add note 1 mem mov [saddrp] add note 1 [%saddrg] mem3 ror4 rol4 r3 mov mov pswl pswh b, c dbnz stbc, wdm mov [tde+] (mov) movbk note 5 [tdeC] (add) note 1 movm note 4 notes 1. the operands of addc, sub, subc, and, or, xor, and cmp are the same as that of add. 2. either the second operand is not used, or the second operand is not an operand address. 3. the operands of rol, rorc, rolc, shr, and shl are the same as that of ror. 4. the operands of xchm, cmpme, cmpmne, cmpmnc, and cmpmc are the same as that of movm. 5. the operands of xchbk, cmpbke, cmpbkne, cmpbknc, and cmpbkc are the same as that of movbk. 6. the code length of some instructions having saddr2 as saddr in this combination is short.
m pd784035y, 784036y, 784037y, 784038y 58 (2) 16-bit instructions (the instructions in parentheses are combinations realized by describing ax as rp) movw, xchw, addw, subw, cmpw, muluw, mulw, divux, incw, decw, shrw, shlw, push, pop, addwg, subwg, pushu, popu, movtblw, macw, macsw, sacw table 12-2. instruction list by 16-bit addressing second operand #word ax rp saddrp sfrp !addr16 mem [whl+] byte n none note 2 rp' saddrp' !!addr24 [saddrp] first operand [%saddrg] ax (movw) (movw) (movw) (movw) note 3 movw (movw) movw (movw) addw note 1 (xchw) (xchw) (xchw) note 3 (xchw) xchw xchw (xchw) (add) note 1 (addw) note 1 (addw) note 1,3 (addw) note 1 rp movw (movw) movw movw movw movw shrw mulw note 4 addw note 1 (xchw) xchw xchw xchw shlw incw (addw) note 1 addw note 1 addw note 1 addw note 1 decw saddrp movw (movw) note 3 movw movw incw addw note 1 (addw) note 1 addw note 1 xchw decw addw note 1 sfrp movw movw movw push addw note 1 (addw) note 1 addw note 1 pop !addr16 movw (movw) movw movtblw !!addr24 mem movw [saddrp] [%saddrg] psw push pop sp addwg subwg post push pop pushu popu [tde+] (movw) sacw byte macw macsw notes 1. the operands of subw and cmpw are the same as that of addw. 2. either the second operand is not used, or the second operand is not an operand address. 3. the code length of some instructions having saddrp2 as saddrp in this combination is short. 4. the operands of muluw and divux are the same as that of mulw.
59 m pd784035y, 784036y, 784037y, 784038y (3) 24-bit instructions (the instructions in parentheses are combinations realized by describing whl as rg) movg, addg, subg, incg, decg, push, pop table 12-3. instruction list by 24-bit addressing second operand #imm24 whl rg saddrg !!addr24 mem1 [%saddrg] sp none note rg' first operand whl (movg) (movg) (movg) (movg) (movg) movg movg movg (addg) (addg) (addg) addg (subg) (subg) (subg) subg rg movg (movg) movg movg movg incg addg (addg) addg decg subg (subg) subg push pop saddrg (movg) movg !!addr24 (movg) movg mem1 movg [%saddrg] movg sp movg movg incg decg note either the second operand is not used, or the second operand is not an operand address.
m pd784035y, 784036y, 784037y, 784038y 60 (4) bit manipulation instructions mov1, and1, or1, xor1, set1, clr1, not1, bt, bf, btclr, bfset table 12-4. bit manipulation instructions second operand cy saddr.bit sfr.bit /saddr.bit /sfr. bit none note a.bit x.bit /a.bit /x.bit pswl.bit pswh.bit /pswl.bit /pswh.bit mem2.bit /mem2.bit first operand !addr16.bit !!addr24.bit /!addr16.bit /!!addr24.bit cy mov1 and1 not1 and1 or1 set1 or1 clr1 xor1 saddr.bit mov1 not1 sfr.bit set1 a.bit clr1 x.bit bf pswl.bit bt pswh.bit btclr mem2.bit bfset !addr16.bit !!addr24.bit note either the second operand is not used, or the second operand is not an operand address.
61 m pd784035y, 784036y, 784037y, 784038y (5) call and return/branch instructions call, callf, callt, brk, ret, reti, retb, retcs, retcsb, brkcs, br, bnz, bne, bz, be, bnc, bnl, bc, bl, bnv, bpo, bv, bpe, bp, bn, blt, bge, ble, bgt, bnh, bh, bf, bt, btclr, bfset, dbnz table 12-5. call and return/branch instructions operand of instruction $addr20 $!addr20 !addr16 !!addr20 rp rg [rp] [rg] !addr11 [addr5] rbn none address basic instruction bc note call call call call call call call callf callf brkcs brk br br br br br br br br ret retcs reti retcsb retb compound instruction bf bt btclr bfset dbnz note the operands of bnz, bne, bz, be, bnc, bnl, bl, bnv, bpo, bv, bpe, bp, bn, blt, bge, ble, bgt, bnh, and bh are the same as bc. (6) other instructions adjba, adjbs, cvtbw, location, sel, not, ei, di, swrs
m pd784035y, 784036y, 784037y, 784038y 62 13. electrical specifications absolute maximum ratings (t a = 25 c) parameter symbol conditions ratings unit supply voltage v dd C0.5 to +7.0 v av dd av ss to v dd +0.5 v av ss C0.5 to +0.5 v input voltage v i C0.5 to v dd +0.5 v output voltage v o C0.5 to v dd +0.5 v low-level output i ol per pin 15 ma current total of all output pins 100 ma high-level output i oh per pin C10 ma current total of all output pins C100 ma a/d converter reference av ref1 C0.5 to v dd +0.3 v input voltage d/a converter reference av ref2 C0.5 to v dd +0.3 v input voltage av ref3 C0.5 to v dd +0.3 v operating ambient t a C40 to +85 c temperature storage temperature t stg C65 to +150 c caution absolute maximum ratings are rated values beyond which physical damage will be caused to the product; if the rated value of any of the parameters in the above table is exceeded, even momentarily, the quality of the product may deteriorate. always use the product within its rated values.
63 m pd784035y, 784036y, 784037y, 784038y capacitance (t a = 25 c, v dd = v ss = 0 v) parameter symbol conditions min. typ. max. unit input capacitance c i f = 1 mhz 10 pf output capacitance c o unmeasured pins returned to 0 v. 10 pf i/o capacitance c io 10 pf operating conditions ? operating ambient temperature (t a ) : C40 to +85 c ? rising time and falling time (tr, tf) (at pins which are not specified) : 0 to 200 m s ? power supply voltage and clock cycle time : see figure 13-1 figure 13-1. power supply voltage and clock cycle time 10000 4000 1000 125 100 62.5 10 01234567 guaranteed operating range power supply voltage [v] clock cycle time t cyk [ns]
m pd784035y, 784036y, 784037y, 784038y 64 oscillator characteristics (t a = C40 to +85 c, v dd = +4.5 to 5.5 v, v ss = 0 v) resonator recommended circuit parameter min. max. unit ceramic resonator or oscillator frequency (f xx ) 4 32 mhz crystal resonator external clock x1 input frequency (f x ) 4 32 mhz x1 input rising/falling time (t xr , t xf ) 0 10 ns x1 input high-/low-level width 10 125 ns (t wxh , t wxl ) caution when using the system clock oscillator, wiring the area enclosed with the broken line should be carried out as follows to avoid an adverse effect from wiring capacitance. ? wiring should be as short as possible. ? wiring should not cross other signal lines. ? wiring should not be placed close to a varying high current. ? the potential of the oscillator capacitor ground should be the same as v ss1 . do not ground wiring to a ground pattern in which a high current flows. ? do not fetch a signal from the oscillator. v ss1 x1 x2 c2 c1 x1 x2 hcmos inverter
65 m pd784035y, 784036y, 784037y, 784038y oscillator characteristics (t a = C40 to +85 c, v dd = +2.7 to 5.5 v, v ss = 0 v) resonator recommended circuit parameter min. max. unit ceramic resonator or oscillator frequency (f xx ) 4 16 mhz crystal resonator external clock x1 input frequency (f x ) 4 16 mhz x1 input rising/falling time (t xr , t xf ) 0 10 ns x1 input high-/low-level width 10 125 ns (t wxh , t wxl ) caution when using the system clock oscillator, wiring the area enclosed with the broken line should be carried out as follows to avoid an adverse effect from wiring capacitance. ? wiring should be as short as possible. ? wiring should not cross other signal lines. ? wiring should not be placed close to a varying high current. ? the potential of the oscillator capacitor ground should be the same as v ss1 . do not ground wiring to a ground pattern in which a high current flows. ? do not fetch a signal from the oscillator. v ss1 x1 x2 c2 c1 x1 x2 hcmos inverter
m pd784035y, 784036y, 784037y, 784038y 66 dc characteristics (t a = C40 to +85 c, v dd = av dd = +2.7 to 5.5 v, v ss = av ss = 0 v) (1/2) parameter symbol conditions min. typ. max. unit low-level input voltage v il1 for pins other than those described in notes 1, 2, C0.3 0.3v dd v 3, 4, and 6 v il2 for pins described in notes 1 , 2 , 3 , 4 , and 6 C0.3 0.2v dd v v il3 v dd = +5.0 v 10% C0.3 +0.8 v for pins described in notes 2 , 3 , and 4 high-level input voltage v ih1 for pins other than those described in notes 1 and 6 0.7v dd v dd +0.3 v v ih2 for pins described in notes 1 and 6 0.8v dd v dd +0.3 v v ih3 v dd = +5.0 v 10% 2.2 v dd +0.3 v for pins described in notes 2 , 3 , and 4 low-level output voltage v ol1 i ol = 2 ma 0.4 v for pins other than those described in note 6 v ol2 i ol = 3 ma 0.4 v for pins described in note 6 i ol = 6 ma 0.6 v for pins described in note 6 v ol3 v dd = +5.0 v 10% 1.0 v i ol = 8 ma for pins described in notes 2 and 5 high-level output voltage v oh1 i oh = C2 ma v dd C1.0 v v oh2 v dd = +5.0 v 10% v dd C1.4 v i oh = C5 ma for pins other than those described in note 4 x1 low-level input current i il extc = 0 C30 m a 0 v v i v il2 x1 high-level input current i ih extc = 0 +30 m a v ih2 v i v dd notes 1. x1, x2, reset, p12/asck2/sck2, p20/nmi, p21/intp0, p22/intp1, p23/intp2/ci, p24/intp3, p25/intp4/asck/sck1, p26/intp5, p27/si0, and test 2. p40/ad0 to p47/ad7 and p50/a8 to p57/a15 3. p60/a16 to p63/a19, p64/rd, p65/wr, p66/wait/hldrq, and p67/refrq/hldak 4. p00 to p07 5. p10 to p17 6. p32/sck0/scl and p33/so0/sda
67 m pd784035y, 784036y, 784037y, 784038y dc characteristics (t a = C40 to +85 c, v dd = av dd = +2.7 to 5.5 v, v ss = av ss = 0 v) (2/2) parameter symbol conditions min. typ. max. unit input leakage current i li 0 v v i v dd 10 m a for pins other than pin x1 when extc = 0 output leakage current i lo 0 v v o v dd 10 m a v dd supply current i dd1 operation mode f xx = 32 mhz 25 45 ma v dd = +5.0 v 10% f xx = 16 mhz 12 25 ma v dd = +2.7 to 3.3 v i dd2 halt mode f xx = 32 mhz 13 26 ma v dd = +5.0 v 10% f xx = 16 mhz 8 12 ma v dd = +2.7 to 3.3 v i dd3 idle mode (extc = 0) f xx = 32 mhz 12 ma v dd = +5.0 v 10% f xx = 16 mhz 8 ma v dd = +2.7 to 3.3 v pull-up resistance r l v i = 0 v 15 80 k w
m pd784035y, 784036y, 784037y, 784038y 68 ac characteristics (t a = C40 to +85 c, v dd = av dd = +2.7 to 5.5 v, v ss = av ss = 0 v) (1) read/write operation (1/2) parameter symbol conditions min. max. unit address setup time t sast v dd = +5.0 v 10% (0.5+a)tC15 ns (0.5+a)tC31 ns astb high-level width t wsth v dd = +5.0 v 10% (0.5+a)tC17 ns (0.5+a)tC40 ns address hold time t hstla v dd = +5.0 v 10% 0.5tC24 ns (from astb ) 0.5tC34 ns address hold time t hra 0.5tC14 ns (from rd - ) rd delay time from t dar v dd = +5.0 v 10% (1+a)tC9 ns address (1+a)tC15 ns address float time t fra 0ns (from rd ) data input time from t daid v dd = +5.0 v 10% (2.5+a+n)tC37 ns address (2.5+a+n)tC52 ns data input time from t dstid v dd = +5.0 v 10% (2+n)tC40 ns astb (2+n)tC60 ns data input time from t drid v dd = +5.0 v 10% (1.5+n)tC50 ns rd (1.5+n)tC70 ns rd delay time from t dstr 0.5tC9 ns astb data hold time t hrid 0ns (from rd - ) address active time t dra after program is read v dd = +5.0 v 10% 0.5tC8 ns from rd - 0.5tC12 ns after data is read v dd = +5.0 v 10% 1.5tC8 ns 1.5tC12 ns astb - delay time t drst 0.5tC17 ns from rd - rd low-level width t wrl v dd = +5.0 v 10% (1.5+n)tC30 ns (1.5+n)tC40 ns address hold time t hwa 0.5tC14 ns (from wr - ) wr delay time from t daw v dd = +5.0 v 10% (1+a)tC5 ns address (1+a)tC15 ns data output delay time t dstod v dd = +5.0 v 10% 0.5t+19 ns from astb 0.5t+35 ns data output delay time t dwod 0.5tC11 ns from wr wr output delay time t dstw 0.5tC9 ns from astb remark t: t cyk (system clock cycle time) a : 1 (during address wait), otherwise, 0 n : number of wait states (n 3 0)
69 m pd784035y, 784036y, 784037y, 784038y (1) read/write operation (2/2) parameter symbol conditions min. max. unit data setup time (to wr - )t sodw v dd = +5.0 v 10% (1.5+n)tC30 ns (1.5+n)tC40 ns data hold time t hwod v dd = +5.0 v 10% 0.5tC5 ns (from wr - ) note 0.5tC25 ns astb - delay time t dwst 0.5tC12 ns (from wr - ) wr low-level width t wwl v dd = +5.0 v 10% (1.5+n)tC30 ns (1.5+n)tC40 ns note the hold time includes the time during which v oh1 and v ol1 are held under the load conditions of c l = 50 pf and r l = 4.7 k w . remark t: t cyk (system clock cycle time) n: number of wait states (n 3 0) (2) bus hold timing parameter symbol conditions min. max. unit float delay time from t fhqc (6+a+n)t+50 ns hldrq - hldak - delay time t dhqhhah v dd = +5.0 v 10% (7+a+n)t+30 ns from hldrq - (7+a+n)t+40 ns hldak - delay time t dcfha 1t+30 ns from float hldak delay time t dhqlhal v dd = +5.0 v 10% 2t+40 ns from hldrq 2t+60 ns active delay time from t dhac v dd = +5.0 v 10% 1tC20 ns hldak 1tC30 ns remark t: t cyk (system clock cycle time) a: 1 (during address wait), otherwise, 0 n: number of wait states (n 3 0)
m pd784035y, 784036y, 784037y, 784038y 70 (3) external wait timing parameter symbol conditions min. max. unit wait input time from t dawt v dd = +5.0 v 10% (2+a)tC40 ns address (2+a)tC60 ns wait input time from t dstwt v dd = +5.0 v 10% 1.5tC40 ns astb 1.5tC60 ns wait hold time from t hstwth v dd = +5.0 v 10% (0.5+n)t+5 ns astb (0.5+n)t+10 ns wait - delay time from t dstwth v dd = +5.0 v 10% (1.5+n)tC40 ns astb (1.5+n)tC60 ns wait input time from t drwtl v dd = +5.0 v 10% tC50 ns rd tC70 ns wait hold time from t hrwt v dd = +5.0 v 10% nt+5 ns rd nt+10 ns wait - delay time from t drwth v dd = +5.0 v 10% (1+n)tC40 ns rd (1+n)tC60 ns data input time from t dwtid v dd = +5.0 v 10% 0.5tC5 ns wait - 0.5tC10 ns wr - delay time from t dwtw 0.5t ns wait - rd - delay time from t dwtr 0.5t ns wait - wait input time from t dwwtl v dd = +5.0 v 10% tC5 ns wr tC75 ns wait hold time from t hwwt v dd = +5.0 v 10% nt+5 ns wr nt+10 ns wait - delay time from t dwwth v dd = +5.0 v 10% (1+n)tC40 ns wr (1+n)tC70 ns remark t: t cyk (system clock cycle time) a: 1 (during address wait), otherwise, 0 n: number of wait states (n 3 0) (4) refresh timing parameter symbol conditions min. max. unit random read/write cycle t rc 3t ns time refrq low-level pulse t wrfql v dd = +5.0 v 10% 1.5tC25 ns width 1.5tC30 ns refrq delay time from t dstrfq 0.5tC9 ns astb refrq delay time from t drrfq 1.5tC9 ns rd - refrq delay time from t dwrfq 1.5tC9 ns wr - astb delay time from t drfqst 0.5tC15 ns refrq - refrq high-level pulse t wrfqh v dd = +5.0 v 10% 1.5tC25 ns width 1.5tC30 ns remark t: t cyk (system clock cycle time)
71 m pd784035y, 784036y, 784037y, 784038y serial operation (t a = C40 to +85 c, v dd = +2.7 to 5.5 v, av ss = v ss = 0 v) (1) csi parameter symbol conditions min. max. unit serial clock cycle time t cysk0 input external clock 10/f xx +380 ns (sck0) when sck0 and so0 are cmos i/o output t m s serial clock low-level t wskl0 input external clock 5/f xx +150 ns width (sck0) when sck0 and so0 are cmos i/o output 0.5tC40 m s serial clock high-level t wskh0 input external clock 5/f xx +150 ns width (sck0) when sck0 and so0 are cmos i/o output 0.5tC40 m s si0 setup time t sssk0 40 ns (to sck0 - ) si0 hold time t hssk0 5/f xx +40 ns (from sck0 - ) so0 output delay time t dsbsk1 cmos push-pull output 0 5/f xx +150 ns (from sck0 ) (3-wire serial i/o mode) t dsbsk2 open-drain output 0 5/f xx +400 ns (2-wire serial i/o mode), r l = 1 k w remarks 1. the values in this table are those when c l is 100 pf. 2. t: serial clock cycle set by software. the minimum value is 16/f xx . 3. f xx : oscillation frequency (2) i 2 c parameter symbol standard mode i 2 c bus high-speed mode i 2 c bus unit f xx = 4 to 32 mhz f xx = 8 to 32 mhz min. max. min. max. scl clock frequency f scl 0 100 0 400 khz hold time of scl clock t low 4.7 1.3 m s low-level state hold time of scl clock t high 4.0 0.6 m s high-level state data hold time t hd ; dat 300 300 900 ns data setup time t su ; dat 250 100 ns rising time of sda and t r 1000 20+0.1cb 300 ns scl signals falling time of sda and t f 300 20+0.1cb 300 ns scl signals load capacitance of cb 400 400 pf each bus line
m pd784035y, 784036y, 784037y, 784038y 72 (3) ioe1, ioe2 parameter symbol conditions min. max. unit serial clock cycle time t cysk1 input v dd = +5.0 v 10% 250 ns (sck1, sck2) 500 ns output internal clock divided by 16 t ns serial clock low-level t wskl1 input v dd = +5.0 v 10% 85 ns width (sck1, sck2) 210 ns output internal clock divided by 16 0.5tC40 ns serial clock high-level t wskh1 input v dd = +5.0 v 10% 85 ns width (sck1, sck2) 210 ns output internal clock divided by 16 0.5tC40 ns si1, si2 setup time t sssk1 40 ns (to sck1, sck2 - ) si1, si2 hold time t hssk1 40 ns (from sck1, sck2 - ) so1, so2 output delay time t dsosk 050ns (from sck1, sck2 ) so1, so2 output hold time t hsosk during data transfer 0.5t cysk1 C40 ns (from sck1, sck2 - ) remarks 1. the values in this table are those when c l is 100 pf. 2. t: serial clock cycle set by software. the minimum value is 16/f xx . (4) uart, uart2 parameter symbol conditions min. max. unit asck clock input cycle t cyask v dd = +5.0 v 10% 125 ns time 250 ns asck clock low-level t waskl v dd = +5.0 v 10% 52.5 ns width 85 ns asck clock high-level t waskh v dd = +5.0 v 10% 52.5 ns width 85 ns
73 m pd784035y, 784036y, 784037y, 784038y clock output operation parameter symbol conditions min. max. unit clkout cycle time t cycl nt ns clkout low-level width t cll v dd = +5.0 v 10% 0.5t cycl C10 ns 0.5t cycl C20 ns clkout high-level width t clh v dd = +5.0 v 10% 0.5t cycl C10 ns 0.5t cycl C20 ns clkout rising time t clr v dd = +5.0 v 10% 10 ns 20 ns clkout falling time t clf v dd = +5.0 v 10% 10 ns 20 ns remark n: divided frequency ratio set by software in the cpu (n = 1, 2, 4, 8, 16) t: t cyk (system clock cycle time) other operations parameter symbol conditions min. max. unit nmi low-level width t wnil 10 m s nmi high-level width t wnih 10 m s intp0 low-level width t wit0l 3t cysmp +10 ns intp0 high-level width t wit0h 3t cysmp +10 ns intp1 to intp3, ci t wit1l 3t cycpu +10 ns low-level width intp1 to intp3, ci t wit1h 3t cycpu +10 ns high-level width intp4, intp5 low-level t wit2l 10 m s width intp4, intp5 high-level t wit2h 10 m s width reset low-level width t wrsl 10 m s reset high-level width t wrsh 10 m s remark t cysmp : sampling clock set by software t cycpu : cpu operation clock set by software in the cpu
m pd784035y, 784036y, 784037y, 784038y 74 a/d converter characteristics (t a = C40 to +85 c, v dd = av dd = av ref1 = +2.7 to 5.5 v, v ss = av ss = 0 v) parameter symbol conditions min. typ. max. unit resolution 8 bit total error note 1.0 % linearity calibration note 0.8 % quantization error 1/2 lsb conversion time t conv fr = 1 120 t cyk fr = 0 180 t cyk sampling time t samp fr = 1 24 t cyk fr = 0 36 t cyk analog input voltage v ian C0.3 av ref1 +0.3 v analog input impedance r an 1000 m w av ref1 current ai ref1 0.5 1.5 ma av dd supply current ai dd1 f xx = 32 mhz, cs = 1 2.0 5.0 ma ai dd2 stop mode, cs = 0 1.0 20 m a note quantization error is not included. this parameter is indicated as the ratio to the full-scale value. remark t cyk : system clock cycle time
75 m pd784035y, 784036y, 784037y, 784038y d/a converter characteristics (t a = C40 to +85 c, v dd = av dd = +2.7 to 5.5 v, v ss = av ss = 0 v) parameter symbol conditions min. typ. max. unit resolution 8 bit total error load conditions: v dd = av dd = av ref2 0.6 % 4 m w , 30 pf = +2.7 to 5.5 v av ref3 = 0 v v dd = av dd = +2.7 to 5.5 v 0.8 % av ref2 = 0.75v dd av ref3 = 0.25v dd load conditions: v dd = av dd = av ref2 0.8 % 2 m w , 30 pf = +2.7 to 5.5 v av ref3 = 0 v v dd = av dd = +2.7 to 5.5 v 1.0 % av ref2 = 0.75v dd av ref3 = 0.25v dd settling time load conditions: 2 m w , 30 pf 10 m s output resistance r o dacs0, 1 = 55 h 10 k w analog reference voltage av ref2 0.75v dd v dd v av ref3 0 0.25v dd v av ref2 , av ref3 resistance r airef dacs0, 1 = 55 h 4 8 k w reference power supply ai ref2 05ma input current ai ref3 C5 0 ma
m pd784035y, 784036y, 784037y, 784038y 76 data retention characteristics (t a = C40 to +85 c) parameter symbol conditions min. typ. max. unit data retention voltage v dddr stop mode 2.5 5.5 v data retention current i dddr v dddr = +2.7 to 5.5 v 10 50 m a v dddr = +2.5 v 2 10 m a v dd rising time t rvd 200 m s v dd falling time t fvd 200 m s v dd hold time t hvd 0ms (from stop mode setting) stop release signal t drel 0ms input time oscillation stabilization t wait crystal resonator 30 ms wait time ceramic resonator 5 ms low-level input voltage v il specific pins note 0 0.1v dddr v high-level input voltage v ih 0.9v dddr v dddr v note reset, p20/nmi, p21/intp0, p22/intp1, p23/intp2/ci, p24/intp3, p25/intp4/asck/sck1, p26/ intp5, p27/si0, p32/sck0/scl, and p33/so0/sda pins ac timing test points 0.8v dd or 2.2 v 0.8 v 0.8v dd or 2.2 v 0.8 v test points v dd ?1 v 0.45 v
77 m pd784035y, 784036y, 784037y, 784038y timing waveform (1) read operation astb a8 to a19 ad0 to ad7 rd t wsth t sast t dstid t hstla t drst t fra t drid t dar t wrl t dstr t daid t hra t dra t hrid (2) write operation astb a8 to a19 ad0 to ad7 wr t wsth t sast t hstla t dwst t daw t dstw t hwod t dstod t dwod t sodw t wwl t hwa
m pd784035y, 784036y, 784037y, 784038y 78 hold timing hldrq hldak t dhqhhah t fhqc t dcfha t dhac t dhqlhal adtb, a8 to a19, ad0 to ad7, rd, wr external wait signal input timing (1) read operation astb a8 to a19 ad0 to ad7 rd wait t dstwt t hstwth t dstwth t dawt t dwtid t dwtr t drwtl t hrwt t drwth (2) write operation astb a8 to a19 ad0 to ad7 wr wait t dstwt t hstwth t dstwth t dawt t dwtw t dwwtl t hwwt t dwwth
79 m pd784035y, 784036y, 784037y, 784038y refresh timing waveform (1) random read/write cycle astb wr rd t rc t rc t rc t rc t rc (2) when refresh memory is accessed for read and write at the same time t wrfql astb rd, wr refrq t dstrfq t drfqst t wrfqh (3) refresh after read astb rd refrq t drfqst t drrfq t wrfql (4) refresh after write astb wr refrq t drfqst t dwrfq t wrfql
m pd784035y, 784036y, 784037y, 784038y 80 serial operation (1) csi sck si so output data input data t sssk0 t hssk0 t dsbsk1 t wskl0 t wskh0 t hsbsk1 t cysk0 scl sda t r t f t high t low t hd ; dat t su ; dat (2) i 2 c (3) ioe1, ioe2 (4) uart, uart2 sck si so output data input data t sssk1 t hssk1 t dsosk t hsosk t wskl1 t wskh1 t cysk1 asck, asck2 t waskh t waskl t cyask
81 m pd784035y, 784036y, 784037y, 784038y clock output timing interrupt input timing reset input timing reset t wrsh t wrsl clkout t clh t cll t cycl t clf t clr nmi intp0 ci, intp1 to intp3 intp4, intp5 t wnih t wnil t wit0h t wit0l t wit1h t wit1l t wit2h t wit2l
m pd784035y, 784036y, 784037y, 784038y 82 external clock timing data retention characteristics v dd reset nmi (clearing by falling edge) nmi (clearing by rising edge) t hvd t fvd t rvd t drel v dddr stop mode setting t wait x1 t wxh t wxl t cyx t xf t xr
83 m pd784035y, 784036y, 784037y, 784038y 14. package drawings remark the shape and material of the es version are the same as those of the corresponding mass-produced product. 80 pin plastic qfp (14 14) item millimeters inches note each lead centerline is located within 0.13 mm (0.005 inch) of its true position (t.p.) at maximum material condition. l 0.8?.2 0.031 +0.009 ?.008 m 0.15 0.006 n 0.10 0.004 p 2.7 0.106 a 17.2?.4 0.677?.016 b 14.0?.2 0.551 +0.009 ?.008 c 14.0?.2 0.551 +0.009 ?.008 d 17.2?.4 0.677?.016 f 0.825 0.032 g 0.825 0.032 h 0.30?.10 0.012 +0.004 ?.005 i 0.13 0.005 j 0.65 (t.p.) 0.026 (t.p.) q 0.1?.1 0.004?.004 r5 ? 5 ? +0.10 ?.05 +0.004 ?.003 m m l k j h q p n r detail of lead end i g k 1.6?.2 0.063?.008 60 61 40 80 1 21 20 41 a b cd f s s80gc-65-3b9-4 s 3.0 max. 0.119 max.
m pd784035y, 784036y, 784037y, 784038y 84 remark the shape and material of the es version are the same as those of the corresponding mass-produced product. 80 pin plastic qfp (14 14) item millimeters inches note each lead centerline is located within 0.13 mm (0.005 inch) of its true position (t.p.) at maximum material condition. p80gc-65-8bt f 0.825 0.032 b 14.00?.20 0.551 +0.009 ?.008 s 1.70 max. 0.067 max. m 0.17 0.007 +0.001 ?.003 +0.03 ?.07 +0.009 ?.008 c 14.00?.20 0.551 +0.009 ?.008 a 17.20?.20 0.677?.008 g 0.825 0.032 h 0.32?.06 0.013 +0.002 ?.003 i 0.13 0.005 j 0.65 (t.p.) 0.026 (t.p.) k 1.60?.20 0.063?.008 l 0.80?.20 0.031 +0.009 ?.008 n 0.10 0.004 p 1.40?.10 0.055?.004 q 0.125?.075 0.005?.003 r3 3 +7 ? +7 ? d 17.20?.20 0.677?.008 41 60 40 61 21 80 20 1 m s q r k m l a b c d j h i f g p n detail of lead end h
85 m pd784035y, 784036y, 784037y, 784038y remark the shape and material of the es version are the same as those of the corresponding mass-produced product. 80 pin plastic tqfp (fine pitch) ( 12) item millimeters inches i j 0.5 (t.p.) 0.10 0.004 0.020 (t.p.) a note each lead centerline is located within 0.10 mm (0.004 inch) of its true position (t.p.) at maximum material condition. s a 14.0?.2 0.551 +0.009 ?.008 b 12.0?.2 0.472 +0.009 ?.008 c 12.0?.2 0.472 +0.009 ?.008 d 14.0?.2 0.551 +0.009 ?.008 f g 1.25 1.25 0.049 0.049 h 0.22 0.009?.002 p80gk-50-be9-4 s 1.27 max. 0.050 max. k 1.0?.2 0.039 +0.009 ?.008 l 0.5?.2 0.020 +0.008 ?.009 m 0.145 0.006?.002 n 0.10 0.004 p 1.05 0.041 q 0.05?.05 0.002?.002 r 55 55 +0.05 ?.04 +0.055 ?.045 b c d j h i g f p n l k m q r detail of lead end m 61 60 41 40 21 20 1 80
m pd784035y, 784036y, 784037y, 784038y 86 15. recommended soldering conditions it is recommended that the m pd784035y, 784036y, 784037y, and 784038y be soldered under the following conditions. for details on the recommended soldering conditions, refer to information document semiconductor device mounting technology manual (c10535e). for soldering methods and conditions other than those recommended, please consult an nec representative. caution the soldering conditions for the m pd784035ygk- -be9 and 784036ygk- -be9 are unde- fined because these products are currently under development. table 15-1. soldering conditions for surface mount type (1/2) (1) m pd784035ygc- -3b9: 80-pin plastic qfp (14 14 mm, 2.7-mm thick) m pd784036ygc- -3b9: 80-pin plastic qfp (14 14 mm, 2.7-mm thick) m pd784037ygc- -3b9: 80-pin plastic qfp (14 14 mm, 2.7-mm thick) m pd784038ygc- -3b9: 80-pin plastic qfp (14 14 mm, 2.7-mm thick) soldering method soldering conditions recommended condition symbol infrared ray reflow package peak temperature: 235 c, reflow time: 30 seconds or less (210 c or more) ir35-00-3 number of reflow processes: 3 or less vps package peak temperature: 215 c, reflow time: 40 seconds or less (200 c or more) vp15-00-3 number of reflow processes: 3 or less wave soldering solder bath temperature: 260 c or less, flow time: 10 seconds or less, ws60-00-1 number of flow processes: 1, preheating temperature: 120 c max. (package surface temperature) partial heating pin temperature: 300 c or less, flow time: 3 seconds or less (for one side of the a device) caution do not apply two or more different soldering methods to one chip (except for partial heating method). (2) m pd784035ygc- -8bt: 80-pin plastic qfp (14 14 mm, 1.4-mm thick) m pd784036ygc- -8bt: 80-pin plastic qfp (14 14 mm, 1.4-mm thick) m pd784037ygc- -8bt: 80-pin plastic qfp (14 14 mm, 1.4-mm thick) m pd784038ygc- -8bt: 80-pin plastic qfp (14 14 mm, 1.4-mm thick) soldering method soldering conditions recommended condition symbol infrared ray reflow package peak temperature: 235 c, reflow time: 30 seconds or less (210 c or more) ir35-00-2 number of reflow processes: 2 or less vps package peak temperature: 215 c, reflow time: 40 seconds or less (200 c or more) vp15-00-2 number of reflow processes: 2 or less wave soldering solder bath temperature: 260 c or less, flow time: 10 seconds or less, ws60-00-1 number of flow processes: 1, preheating temperature: 120 c max. (package surface temperature) partial heating pin temperature: 300 c or less, flow time: 3 seconds or less (for one side of the a device) caution do not apply two or more different soldering methods to one chip (except for partial heating method).
87 m pd784035y, 784036y, 784037y, 784038y table 15-1. soldering conditions for surface mount type (2/2) (3) m pd784037ygk- -be9: 80-pin plastic tqfp (fine-pitch) (12 12 mm) m pd784038ygk- -be9: 80-pin plastic tqfp (fine-pitch) (12 12 mm) soldering method soldering conditions recommended condition symbol infrared ray reflow package peak temperature: 235 c, reflow time: 30 seconds or less (210 c or more) ir35-107-2 number of reflow processes: 2 or less exposure limit: 7 days note (10 hours of pre-baking is required at 125 c afterward) vps package peak temperature: 215 c, reflow time: 40 seconds or less (200 c or more) vp15-107-2 number of reflow processes: 2 or less exposure limit: 7 days note (10 hours of pre-baking is required at 125 c afterward) partial heating pin temperature: 300 c or less, flow time: 3 seconds or less (per side of a device) note maximum number of days during which the product can be stored at a temperature of 25 c and a relative humidity of 65% or less after dry-pack package is opened. caution do not apply two or more different soldering methods to one chip (except for partial heating method).
m pd784035y, 784036y, 784037y, 784038y 88 appendix a development tools the following development tools are available for supporting development of a system using the m pd784038y. language processor software ra78k4 note 1 assembler package common to 78k/iv series cc78k4 note 1 c compiler package common to 78k/iv series cc78k4-l note 1 c compiler library source file common to 78k/iv series prom writing tool pg-1500 prom program writer pa-78p4026gc programmer adapter connected to pg-1500 pa-78p4038gk pa-78p4026kk pg-1500 controller note 2 pg-1500 control program debugging tool ie-784000-r in-circuit emulator common to 78k/iv series ie-784000-r-bk break board common to 78k/iv series ie-784038-r-em1 emulation board for evaluation of m pd784038y subseries ie-784000-r-em ie-70000-98-if-b interface adapter when pc-9800 series (except notebook type) is used as host machine ie-70000-98n-if interface adapter and cable when notebook type pc-9800 series is used as host machine ie-70000-pc-if-b interface adapter when ibm pc/at tm is used as host machine ie-78000-r-sv3 interface adapter and cable when ews is used as host machine ep-78230gc-r emulation probe for 80-pin plastic qfp (gc-3b9, gc-8bt type) common to m pd784038y subseries ep-78054gk-r emulation probe for 80-pin plastic tqfp (fine pitch) (gk-be9 type) common to m pd784038y subseries ev-9200gc-80 socket mounted on board of target system created for 80-pin plastic qfp (gc-3b9, gc-8bt type) tgk-080sdw adapter mounted on board of target system created for 80-pin plastic tqfp (fine pitch) (gk-be9) ev-9900 jig used to remove m pd78p4038ykk-t from ev-9200gc-80 sm78k4 note 3 system simulator common to 78k/iv series id78k4 note 3 integrated debugger for ie-784000-r df784038 note 4 device file for m pd784038y subseries real-time os rx78k/iv note 4 real-time os for 78k/iv series mx78k4 note 2 os for 78k/iv series
89 m pd784035y, 784036y, 784037y, 784038y notes. 1. ? pc-9800 series (ms-dos tm ) base ? ibm pc/at and compatible machine (pc dos tm , windows tm , ms-dos, ibm dos tm ) base ? hp9000 series 700 tm (hp-ux tm ) base ? sparcstation tm (sunos tm ) base ? news tm (news-os tm ) base 2. ? pc-9800 series (ms-dos) base ? imb pc/at and compatible machine (pc dos, windows, ms-dos, ibm dos) base 3. ? pc-9800 series (ms-dos+windows) base ? ibm pc/at and compatible machine (pc dos, windows, ms-dos, ibm dos) base ? hp9000 series 700 (hp-ux) base ? sparcstation (sunos) base 4. ? pc-9800 series (ms-dos) base ? ibm pc/at and compatible machine (pc dos, windows, ms-dos, ibm dos) base ? hp9000 series 700 (hp-ux) base ? sparcstation (sunos) base remarks 1. ra78k4, cc78k4, sm78k4, and id78k4 are used in combination with df784038. 2. the tgk-080sdw is a product of tokyo eletech corporation (tokyo, 03-5295-1661). consult an nec sales representative about purchasing.
m pd784035y, 784036y, 784037y, 784038y 90 appendix b related documents documents related to device document name document no. japanese english m pd784031y data sheet u11504j u11504e m pd784035y, 784036y, 784037y, 784038y data sheet u10741j this manual m pd78p4038y data sheet u10742j u10742e m pd784038, 784038y subseries users manual - hardware u11316j u11316j m pd784038y subseries special function register table u11091j C 78k/iv series users manual - instructions u10905j u10905e 78k/iv series instruction table u10594j C 78k/iv series instruction set u10595j C 78k/iv series application note - software basics u10095j u10095e documents related to development tools (users manuals) document name document no. japanese english ra78k4 assembler package operation u11334j u11334e language u11162j ra78k series structured assembler preprocessor eeu-817 eeu-1402 cc78k4 series operation eeu-960 language eeu-961 cc78k series library source file u12322j pg-1500 prom programmer u11940j eeu-1335 pg-1500 controller - pc-9800 series (ms-dos) based eeu-704 eeu-1291 pg-1500 controller - ibm pc series (pc dos) based eeu-5008 u10540e ie-784000-r eeu-5004 eeu-1534 ie-784038-r-em1 u11383j u11383e ep-78230 eeu-985 eeu-1515 ep-78054gk-r eeu-932 eeu-1468 sm78k4 system simulator - windows based reference u10093j u10093e sm78k series system simulator external component u10092j u10092e user open interface specification id78k4 integrated debugger - windows based reference u10440j u10440e id78k4 integrated debugger hp9000 series 700 reference u11960j under preparation (hp-ux) based caution the contents of the above related documents are subject to change without notice. be sure to use the latest edition of a document for designing.
91 m pd784035y, 784036y, 784037y, 784038y documents related to embedded software (users manual) document name document no. japanese english 78k/iv series real-time os basics u10603j u10603e installation u10604j u10604e debugger u10364j 78k/iv series os mx78k4 basics u11779j other documents document name document no. japanese english ic package manual c10943x semiconductor device mounting technology manual c10535j c10535e quality grades on nec semiconductor devices c11531j c11531e nec semiconductor device reliability/quality control system c10983j c10983e electrostatic discharge (esd) test mem-539 guide to quality assurance for semiconductor devices c11893j mei-1202 guide to microcontroller-related products by third parties u11416j caution the contents of the above related documents are subject to change without notice. be sure to use the latest edition of a document for designing.
m pd784035y, 784036y, 784037y, 784038y 92 notes for cmos devices 1 precaution against esd for semiconductors note: strong electric field, when exposed to a mos device, can cause destruction of the gate oxide and ultimately degrade the device operation. steps must be taken to stop generation of static electricity as much as possible, and quickly dissipate it once, when it has occurred. environmental control must be adequate. when it is dry, humidifier should be used. it is recommended to avoid using insulators that easily build static electricity. semiconductor devices must be stored and transported in an anti-static container, static shielding bag or conductive material. all test and measurement tools including work bench and floor should be grounded. the operator should be grounded using wrist strap. semiconductor devices must not be touched with bare hands. similar precautions need to be taken for pw boards with semiconductor devices on it. 2 handling of unused input pins for cmos note: no connection for cmos device inputs can be cause of malfunction. if no connection is provided to the input pins, it is possible that an internal input level may be generated due to noise, etc., hence causing malfunction. cmos device behave differently than bipolar or nmos devices. input levels of cmos devices must be fixed high or low by using a pull-up or pull-down circuitry. each unused pin should be connected to v dd or gnd with a resistor, if it is considered to have a possibility of being an output pin. all handling related to the unused pins must be judged device by device and related specifications governing the devices. 3 status before initialization of mos devices note: power-on does not necessarily define initial status of mos device. production process of mos does not define the initial operation status of the device. immediately after the power source is turned on, the devices with reset function have not yet been initialized. hence, power-on does not guarantee out-pin levels, i/o settings or contents of registers. device is not initialized until the reset signal is received. reset operation must be executed immediately after power-on for devices having reset function.
93 m pd784035y, 784036y, 784037y, 784038y nec electronics inc. (u.s.) santa clara, california tel: 800-366-9782 fax: 800-729-9288 nec electronics (germany) gmbh duesseldorf, germany tel: 0211-65 03 02 fax: 0211-65 03 490 nec electronics (uk) ltd. milton keynes, uk tel: 01908-691-133 fax: 01908-670-290 nec electronics italiana s.r.1. milano, italy tel: 02-66 75 41 fax: 02-66 75 42 99 nec electronics hong kong ltd. hong kong tel: 2886-9318 fax: 2886-9022/9044 nec electronics hong kong ltd. seoul branch seoul, korea tel: 02-528-0303 fax: 02-528-4411 nec electronics singapore pte. ltd. united square, singapore 1130 tel: 253-8311 fax: 250-3583 nec electronics taiwan ltd. taipei, taiwan tel: 02-719-2377 fax: 02-719-5951 nec do brasil s.a. sao paulo-sp, brasil tel: 011-889-1680 fax: 011-889-1689 nec electronics (germany) gmbh benelux office eindhoven, the netherlands tel: 040-2445845 fax: 040-2444580 nec electronics (france) s.a. velizy-villacoublay, france tel: 01-30-67 58 00 fax: 01-30-67 58 99 nec electronics (france) s.a. spain office madrid, spain tel: 01-504-2787 fax: 01-504-2860 nec electronics (germany) gmbh scandinavia office taeby, sweden tel: 08-63 80 820 fax: 08-63 80 388 regional information some information contained in this document may vary from country to country. before using any nec product in your application, please contact the nec office in your country to obtain a list of authorized representatives and distributors. they will verify: ? device availability ? ordering information ? product release schedule ? availability of related technical literature ? development environment specifications (for example, specifications for third-party tools and components, host computers, power plugs, ac supply voltages, and so forth) ? network requirements in addition, trademarks, registered trademarks, export restrictions, and other legal issues may also vary from country to country. j96. 8
m pd784035y, 784036y, 784037y, 784038y the related documents indicated in this publication may include preliminary versions. however, prelimi- nary versions are not marked as such. no part of this document may be copied or reproduced in any form or by any means without the prior written consent of nec corporation. nec corporation assumes no responsibility for any errors which may appear in this document. nec corporation does not assume any liability for infringement of patents, copyrights or other intellectual property rights of third parties by or arising from use of a device described herein or any other liability arising from use of such device. no license, either express, implied or otherwise, is granted under any patents, copyrights or other intellectual property rights of nec corporation or others. while nec corporation has been making continuous effort to enhance the reliability of its semiconductor devices, the possibility of defects cannot be eliminated entirely. to minimize risks of damage or injury to persons or property arising from a defect in an nec semiconductor device, customers must incorporate sufficient safety measures in its design, such as redundancy, fire-containment, and anti-failure features. nec devices are classified into the following three quality grades: "standard", "special", and "specific". the specific quality grade applies only to devices developed based on a customer designated "quality assurance program" for a specific application. the recommended applications of a device depend on its quality grade, as indicated below. customers must check the quality grade of each device before using it in a particular application. standard: computers, office equipment, communications equipment, test and measurement equipment, audio and visual equipment, home electronic appliances, machine tools, personal electronic equipment and industrial robots special: transportation equipment (automobiles, trains, ships, etc.), traffic control systems, anti-disaster systems, anti-crime systems, safety equipment and medical equipment (not specifically designed for life support) specific: aircrafts, aerospace equipment, submersible repeaters, nuclear reactor control systems, life support systems or medical equipment for life support, etc. the quality grade of nec devices is "standard" unless otherwise specified in nec's data sheets or data books. if customers intend to use nec devices for applications other than those specified for standard quality grade, they should contact an nec sales representative in advance. anti-radioactive design is not implemented in this product. m4 96.5 the export of this product from japan is regulated by the japanese government. to export this product may be prohibited without governmental license, the need for which must be judged by the customer. the export or re-export of this product from a country other than japan may also be prohibited without a license from that country. please call an nec sales representative. caution purchase of nec i 2 c components conveys a license under the philips i 2 c patent rights to use these components in an i 2 c system, provided that the system conforms to the i 2 c standard specification as defined by philips. eeprom and iebus are trademarks of nec corporation. ms-dos and windows are either registered trademarks or trademarks of microsoft corporatin in the united states and/or other countries. ibm dos, pc/at, and pc dos are trademarks of international business machines corporation. hp9000 series 700 and hp-ux are trademarks of hewlett-packard corporation. sparcstation is a trademark of sparc international, inc. sunos is a trademark of sun microsystems, inc. news and news-os are trademarks of sony corporation.


▲Up To Search▲   

 
Price & Availability of UPD784035YGK

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X